📜  gdscript 添加子节点 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:33.443000             🧑  作者: Mango

代码示例1
in gdscript, write:


var node = Node.new(); # You can use any node class here, not just the default

func _ready():
    # Put some code here to modify the node variable (usually just change some
    # properties, or connect some signals)
    add_child(node)