0 votes

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).

asked Jun 5 in Projects by azymohliad (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.