We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7834706 commit 90aa60aCopy full SHA for 90aa60a
addons/block_code/blocks/communication/switch_scene.tres
@@ -0,0 +1,18 @@
1
+[gd_resource type="Resource" load_steps=2 format=3 uid="uid://dnc2555wnobks"]
2
+
3
+[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_rnqd5"]
4
5
+[resource]
6
+script = ExtResource("1_rnqd5")
7
+name = &"switch_scene"
8
+target_node_class = ""
9
+description = "Delete the current scene and switch to a new scene"
10
+category = "Communication | Methods"
11
+type = 2
12
+variant_type = 4
13
+display_template = "switch the scene to {file_path: STRING}"
14
+code_template = "get_tree().change_scene_to_file({file_path})
15
+"
16
+defaults = {}
17
+signal_name = ""
18
+scope = ""
0 commit comments