Calls the referenced function previously set in _function or @GDScript.funcref.
Returns whether the object still exists and has the function assigned.
The object containing the referenced function. This object must be of a type actually inheriting from GodotObject, not a built-in type such as long, Vector2 or Dictionary.
The name of the referenced function.
Construct a new instance of FuncRef. Note: use memnew!FuncRef instead.
Reference to a function in an object.
In GDScript, functions are not first-class objects. This means it is impossible to store them directly as variables, return them from another function, or pass them as arguments. However, by creating a FuncRef using the @GDScript.funcref function, a reference to a function in a given object can be created, passed around and called.