Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | philomelus |
In Godot 3.x, you could load a gdnative class as an autoload by loading the gdns file. How is this done in Godot 4.x?
I tried creating a gdscript derived from the object, then set that as an autoload, but I cannot seem to get to it. print_tree
shows my object in the root of the SceneTree, but when I call get_tree()->get_root()->get_node<Globals>("test")
, or get_node<Globals>("/root/test")
, it returns nullptr. When I run the scene, the debugger has lines saying that the node isn’t found. Both of those options worked with gdnative in 3.5+.
I am at a loss as to what else to try.