Added an invisible sphere behind the bug marker icon, which makes it much easier to click on markers in the editor.
This commit is contained in:
parent
41cc9305cf
commit
f73debc9b2
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=12 format=3 uid="uid://crr6cjploetps"]
|
[gd_scene load_steps=14 format=3 uid="uid://crr6cjploetps"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://addons/Bugbot/Scenes/bug_marker.gd" id="1_1adfi"]
|
[ext_resource type="Script" path="res://addons/Bugbot/Scenes/bug_marker.gd" id="1_1adfi"]
|
||||||
[ext_resource type="ArrayMesh" uid="uid://dtvea38mlpfla" path="res://addons/Bugbot/Meshes/arrow.res" id="1_65xos"]
|
[ext_resource type="ArrayMesh" uid="uid://dtvea38mlpfla" path="res://addons/Bugbot/Meshes/arrow.res" id="1_65xos"]
|
||||||
@ -14,6 +14,17 @@
|
|||||||
custom_aabb = AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5)
|
custom_aabb = AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5)
|
||||||
size = Vector2(0.25, 0.25)
|
size = Vector2(0.25, 0.25)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gepln"]
|
||||||
|
blend_mode = 3
|
||||||
|
cull_mode = 1
|
||||||
|
no_depth_test = true
|
||||||
|
shading_mode = 0
|
||||||
|
|
||||||
|
[sub_resource type="SphereMesh" id="SphereMesh_yeh7j"]
|
||||||
|
material = SubResource("StandardMaterial3D_gepln")
|
||||||
|
radius = 0.125
|
||||||
|
height = 0.25
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_t2p88"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_t2p88"]
|
||||||
radius = 0.125398
|
radius = 0.125398
|
||||||
|
|
||||||
@ -35,6 +46,9 @@ cast_shadow = 0
|
|||||||
mesh = SubResource("QuadMesh_dd1nc")
|
mesh = SubResource("QuadMesh_dd1nc")
|
||||||
surface_material_override/0 = ExtResource("8_lbbxq")
|
surface_material_override/0 = ExtResource("8_lbbxq")
|
||||||
|
|
||||||
|
[node name="SelectionArea" type="MeshInstance3D" parent="Billboard"]
|
||||||
|
mesh = SubResource("SphereMesh_yeh7j")
|
||||||
|
|
||||||
[node name="Info" type="Area3D" parent="Billboard" groups=["BugMarkerInfo"]]
|
[node name="Info" type="Area3D" parent="Billboard" groups=["BugMarkerInfo"]]
|
||||||
collision_layer = 4294967295
|
collision_layer = 4294967295
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user