Add Node.clear() method, which resets a node to type "NONE" and value 'nil'.
This can be used to invalidate nodes and may be interesting for debugging purposes. Use carefully!
This commit is contained in:
parent
d1b2744985
commit
b3032f63c7
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ var Node = {
|
|||
setDoubleValue : func _setDoubleValue(me._g, arg),
|
||||
unalias : func _unalias(me._g, arg),
|
||||
alias : func(n) _alias(me._g, [isa(n, Node) ? n._g : n]),
|
||||
clear : func _alias(me._g, [_globals()]) and _unalias(me._g, []),
|
||||
|
||||
getPath : func {
|
||||
var (name, index, parent) = (me.getName(), me.getIndex(), me.getParent());
|
||||
|
|
Loading…
Add table
Reference in a new issue