FuncRef

    Category: Core

    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.

    • call_func () vararg

    Calls the referenced function previously set by set_function or .



    • void set_instance ( Object instance )

    The object containing the referenced function. This object must be of a type actually inheriting from , not a built-in type such as int, or Dictionary.