-
-
Notifications
You must be signed in to change notification settings - Fork 270
Set proper initialization level for OpenXrExtensionWrapper
#1445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set proper initialization level for OpenXrExtensionWrapper
#1445
Conversation
8893617 to
1f72724
Compare
|
API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1445 |
OpenXrExtensionWrapper.OpenXrExtensionWrapper
|
Hmm, that's interesting issue 🤔 – in general godot-rust tries to make some assertions about class which require poking ClassDb which is not available before Scenes init level. @RubberDuckShobe for now the only thing I can recommend is compiling with |
|
Thank you, I'll try and report back. |
|
It works with that feature enabled!!! Thank you! |

As doc mentions: https://docs.godotengine.org/en/stable/classes/class_openxrextensionwrapper.html OpenXrExtensionWrapper should be initialized at core init level – this is how they do so in official C++ extension https://github.com/GodotVR/godot_openxr_vendors/blob/e25282cdf00d3ca1485c29aee9aa066efba75f67/plugin/src/main/cpp/register_types.cpp#L158. As for class itself – see
initialize_openxr_modulein https://github.com/godotengine/godot/blob/master/modules/openxr/register_types.cpp.