Show interaction popup (<E> Label)

This commit is contained in:
cblech
2024-12-20 20:34:10 +01:00
parent 84fcec8227
commit 78471268db
3 changed files with 21 additions and 2 deletions
+13 -1
View File
@@ -9,8 +9,20 @@ radius = 1.0
script = ExtResource("1_26v5g")
[node name="Area3D" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("SphereShape3D_i8sim")
[node name="Label3D" type="Label3D" parent="."]
sorting_offset = 100.0
pixel_size = 0.001
billboard = 1
no_depth_test = true
fixed_size = true
text = "<E>"
font_size = 98
outline_size = 22
[connection signal="body_entered" from="Area3D" to="Label3D" method="show"]
[connection signal="body_exited" from="Area3D" to="Label3D" method="hide"]