import the woofer
This commit is contained in:
parent
825fee53e2
commit
3e89acfea8
92 changed files with 5783 additions and 0 deletions
8
addons/godot_state_charts/debug_util.gd
Normal file
8
addons/godot_state_charts/debug_util.gd
Normal file
|
@ -0,0 +1,8 @@
|
|||
## Returns the path of a node in the scene tree
|
||||
## Returns the name of the node if the node is not in the tree.
|
||||
static func path_of(node: Node) -> String:
|
||||
if node == null:
|
||||
return ""
|
||||
if !node.is_inside_tree():
|
||||
return node.name + " (not in tree)"
|
||||
return str(node.get_path())
|
Loading…
Add table
Add a link
Reference in a new issue