init
This commit is contained in:
18
test.gd
Executable file
18
test.gd
Executable file
@@ -0,0 +1,18 @@
|
||||
@tool
|
||||
extends Control
|
||||
@export var array: Array[Array]
|
||||
@export_tool_button("Hello") var hello_action: Callable = hello
|
||||
|
||||
var a:int = 0
|
||||
|
||||
func hello():
|
||||
var label = Label.new()
|
||||
label.text = "Hello"
|
||||
label.name = "HI"
|
||||
add_child(label)
|
||||
label.owner = get_tree().edited_scene_root
|
||||
print(get_tree().edited_scene_root.find_child("VBoxContainer"))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user