Dropping into the Dropsink now creates an instance of the given scene

This commit is contained in:
Streamfire
2020-04-18 21:05:59 +02:00
parent c461869511
commit 909be00d6e
3 changed files with 20 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Menus/DragNDrop/DragSource.tscn" type="PackedScene" id=1]
[ext_resource path="res://Menus/DragNDrop/DragSink.tscn" type="PackedScene" id=2]
[ext_resource path="res://Objects/Banana/Banana.tscn" type="PackedScene" id=3]
[node name="DragNDropUI" type="Control"]
anchor_right = 1.0
@@ -13,5 +14,10 @@ __meta__ = {
}
[node name="DragSource" parent="." instance=ExtResource( 1 )]
margin_left = 12.7532
margin_top = 230.124
margin_right = 44.7532
margin_bottom = 262.124
Item = ExtResource( 3 )
[node name="DragSink" parent="." instance=ExtResource( 2 )]