Asset Bundle error using OpenXR preview package
Describe the bug
Can not build asset bundles using the OpenXR preview package, returns the following error
The type or namespace name 'OpenXR' does not exist in the namespace 'Microsoft.MixedReality'
To reproduce
Steps to reproduce the behavior:
- Have OpenXR preview package for MRTK
- Attempt to build asset bundle
- Error, bundle will not build
Expected behavior
Bundle is build and located in desired folder
Your setup (please complete the following information)
- Unity Version 2020.2.7f
- MRTK Version 2.6.1
Target platform (please complete the following information)
- HoloLens 2
- WMR immersive
- OpenVR
- Oculus
- Varjo X3
Do you know which file is complaining about the missing namespace?
Do you know which file is complaining about the missing namespace? MicrosoftArticulatedHands.cs
#if MSFT_OPENXR using Microsoft.MixedReality.OpenXR; using Preview = Microsoft.MixedReality.OpenXR.Preview; #endif // MSFT_OPENXR
Would always complain about a compile error and stop the asset bundles from building on that script.
The Mixed Reality OpenXR package has graduated from the preview state and the latest release as of now is 1.0.1. Could you retry with that version (along with MRTK 2.7.2) and let us know if the issue still appears? If so sending us a repro project will be helpful for us to investigate. Thanks!
Facing same error in: Unity 2020.3 16f1 com.microsoft.mixedreality.openxr-1.0.2 com.microsoft.mixedreality.toolkit.foundation-2.7.2
Facing same error in: Unity 2020.3 16f1 com.microsoft.mixedreality.openxr-1.0.2 com.microsoft.mixedreality.toolkit.foundation-2.7.2
Can you please paste the specific error log here? The previously mentioned line no longer exists in the same format in 2.7.2
https://github.com/microsoft/MixedRealityToolkit-Unity/blob/c3d43b802cef99936cb9751a7b2740c6754be444/Assets/MRTK/Providers/OpenXR/Scripts/MicrosoftArticulatedHand.cs#L20-L29
Still having this issue in Unity 2020.3.26.f1, with MRTK 2.7.3, and OpenXR 1.3.1. It specifically happens when the asset bundles Build Target is "Standalone Windows" instead of "WSA Player". The "Standalone Windows 64" Build Target works as intended. Notably, the the Mixed Reality OpenXR Plugin assembly definition only has Editor, UWP, and Windows 64-bit selected for included platforms, so this could be why.
Notably, the the Mixed Reality OpenXR Plugin assembly definition only has Editor, UWP, and Windows 64-bit selected for included platforms, so this could be why.
Yep, this sounds like the correct answer! We don't ship 32-bit Windows Standalone support in the MR OpenXR package.
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!