Godot 4.3
How can I put a GODOT function (like _ready(), for example) inside another function (any function)?
Godot 4.3
How can I put a GODOT function (like _ready(), for example) inside another function (any function)?
Could you elaborate on what you are actually trying to do? This smells like an xy problem.
Func custom_func() -> void:
#process func here (I want to repeat this function using _process
If you want to run custom_func
every frame, then you can call it inside of _process
, not by putting _process
inside of custom_func
.
func custom_func() -> void:
print("custom function")
func _process(delta: float) -> void:
custom_func()