Skip to content

Commit 39bf89e

Browse files
committed
Added default scene for interact areas
This way, we have a scene that has the default configuration (collision layers and mask) of the interact area already setup. I made it this way instead of by modifying the interact_area.gd because I'd like to let the contributors modify the collision layers of the nodes after they were created. I think that this would not be needed anymore once we this pull request is merged into godot and default values for inherited properties can be overriden: godotengine/godot#93787 -- godotengine/godot-proposals#338
1 parent 8a3e0bf commit 39bf89e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scenes/interact/interact_area.tscn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[gd_scene load_steps=2 format=3 uid="uid://dutgnbiy7xalb"]
2+
3+
[ext_resource type="Script" uid="uid://du8wfijr35r35" path="res://scenes/interact/interact_area.gd" id="1_esvy3"]
4+
5+
[node name="InteractArea" type="Area2D"]
6+
collision_layer = 32
7+
collision_mask = 0
8+
script = ExtResource("1_esvy3")
9+
metadata/_custom_type_script = "uid://du8wfijr35r35"

0 commit comments

Comments
 (0)