Header Ads

Clear child node / node in godot



Clear Node

$node.queue_free()

Clear Child Node

var nodes = $node.get_children()
    for child in nodes:
child.queue_free()

*You can change the red text to the node you want to delete


App : Godot engine
App version : 4.2
Your free, open‑source game engine.
Download Download Godot for Windows

Tidak ada komentar

Diberdayakan oleh Blogger.