b4e08eb752
This method is registered in a special way so ClassDB doesn't naturally know about its existence. Here it is hardcoded if any other option fail to check if it is about the `free()` method and, if so, say it exists and return a Callable.
10 lines
178 B
GDScript
10 lines
178 B
GDScript
func test():
|
|
var node := Node.new()
|
|
var callable: Callable = node.free
|
|
callable.call()
|
|
print(node)
|
|
|
|
node = Node.new()
|
|
callable = node["free"]
|
|
callable.call()
|
|
print(node)
|