Skip to content
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

Missing API functions throwing errors when running on PC without VR #183

Open
goatchurchprime opened this issue Mar 7, 2022 · 1 comment

Comments

@goatchurchprime
Copy link

All the functions are throwing errors by being missing when trying to access the members of, say, OpenXRSkeleton.gdns from the hand tracking feature and I'm not running on a VR platform.

This is related to GodotVR/godot-xr-tools#93 where I'm trying to get development done on the VR code without VR to improve the rate I can iterate the code.

It would help if these functions were there but did nothing instead of throwing errors.

@BastiaanOlij
Copy link
Member

You mean you're running on a platform that does not support VR at all, or just that initialise hasn't been run?

GDnative definitely is a pain in the but when you're running on an unsupported platform, not much we can do other then create dummy implementations for each of the other platforms and that is a lot of work for nothing. Best is just not to load in the VR scripts unless the platform supports them.

If the plugin is loaded but just not initialized, it should be able to create the objects just fine and we should be able to exit out of functions properly if the interface is not initialized, but I can't remember having errors in this situation (also admit, its not something I often try so I might be completely oblivious).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants