Forum Discussion
DevelopmentTechstar
2 years agoHonored Guest
Missing ref in OVRPlugin.cs when building on WebGL
Meta XR Core SDK: 68.0.2
Unity Version: 2021.3.41
OVRPlugin.cs is not correctly compiling for scenario where XR is not supported. The references are unresolved because WebGL does not support OVR and OVRPLUGIN_UNSUPPORTED_PLATFORM is true. When building for WebGL platform I get these errors:
- OVRPlugin.cs(5389,9): error CS0103: The name 'pose' does not exist in the current context,
- OVRPlugin.cs(5390,9): error CS0177: The out parameter 'result' must be assigned to before control leaves the current method
5 Replies
Replies have been turned off for this discussion
- ICARMetaQuest13Honored Guest
I am experiencing the same exact issue. Unity Editor 2022.3.8f1, Meta XR Core package version 68.0.2
It compiles just fine for the Quest, but I am also building for Linux (multi-user application with server and client in the same project), but the build directive OVRPLUGIN_UNSUPPORTED_PLATFORM becomes true and it tries those lines of code which produce an error. (OVRPlugin.cs:5388,5389)I downgraded to 68.0.1 and it compiles fine in the meantime, but that feels "sub optimal".
Confirmed 68.0.3 has the same issue as of 9/26/2024
- dri_richardExplorer
Same here, hoping for a fix in 68.0.3
- danidiazrHonored Guest
Same problem, not fixed in 68.0.3
- grumiauxlHonored Guest
Same problem when building linux standalone for our dedicated server.
not fixed in 68.0.3 - ICARMetaQuest13Honored Guest
Seems to work fine in 69.0.0
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 14 days ago
- 25 days ago
- 8 months ago