Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | azymohliad |
If I just mark the method with static
in C++ and try to register it with register_method()
, it won’t compile.
I expect that I could call it from GDScript with something like this:
load("res://MyClass.gdns").my_method()
Btw, MyClass
doesn’t have any non-static members if it matters, except it is inherited from godot::Object
(I guess this is the only way).