Answers for "godot function in a variable"

1

godot var := x

Inferred types
In most cases you can let the compiler infer the type, using :=:

var health := 0 # The compiler will use the int type.
Posted by: Guest on December-26-2020
0

godot function as parameters

var f = funcref(owning_object, "function_to_call")
f.call_func(optional_parameters, "for function", 42)
Posted by: Guest on December-08-2021

Code answers related to "godot function in a variable"

Browse Popular Code Answers by Language