Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PontiffPomelo |
Hi,
Is it possible to access static c# classes from gdscript?
preload() does not work on classes that do not extend Godot.Object, and static classes need to extend System.Object directly.
A hacky solution is to just create a non static class that extends Godot.Object and make all functions static, but that way it could be instantiated, which I would like to avoid syntactically to avoid confusion when sharing the code.
Thanks,
Pomelo