You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code snippet compiles in engine code, but does not compile in godot-cpp:
error: no member named 'get_singleton' in 'godot::SceneTree'
91 | SceneTree *scene_tree = SceneTree::get_singleton();
| ~~~~~~~~~~~^
1 error generated.
My use case is that I'm trying to connect to signals on SceneTree such as physics_frame.
It seems that most other singletons have this method in godot-cpp, it's just SceneTree where it's missing:
Steps to reproduce
Add SceneTree *scene_tree = SceneTree::get_singleton(); to a GDExtension godot-cpp project and try to compile it.
Minimal reproduction project
I'm not gonna bother including a minimal reproduction project since it's one line of code.
The text was updated successfully, but these errors were encountered:
Godot version
Godot 4.3-stable
godot-cpp version
master b93d6e8
System information
macOS 14.6.1 arm64
Issue description
This code snippet compiles in engine code, but does not compile in godot-cpp:
My use case is that I'm trying to connect to signals on SceneTree such as
physics_frame
.It seems that most other singletons have this method in godot-cpp, it's just SceneTree where it's missing:
Steps to reproduce
Add
SceneTree *scene_tree = SceneTree::get_singleton();
to a GDExtension godot-cpp project and try to compile it.Minimal reproduction project
I'm not gonna bother including a minimal reproduction project since it's one line of code.
The text was updated successfully, but these errors were encountered: