MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Asset Bundle error using OpenXR preview package

Open burkewm opened this issue 5 years ago • 8 comments

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:

  1. Have OpenXR preview package for MRTK
  2. Attempt to build asset bundle
  3. 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

burkewm avatar Apr 27 '21 17:04 burkewm

Do you know which file is complaining about the missing namespace?

keveleigh avatar Apr 27 '21 18:04 keveleigh

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.

burkewm avatar Apr 27 '21 20:04 burkewm

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!

MaxWang-MS avatar Jul 27 '21 00:07 MaxWang-MS

Facing same error in: Unity 2020.3 16f1 com.microsoft.mixedreality.openxr-1.0.2 com.microsoft.mixedreality.toolkit.foundation-2.7.2

abhimanyusinghal avatar Sep 07 '21 10:09 abhimanyusinghal

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

keveleigh avatar Sep 07 '21 16:09 keveleigh

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.

Tabsher2 avatar Feb 07 '22 20:02 Tabsher2

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.

keveleigh avatar Feb 16 '22 01:02 keveleigh

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!

IssueSyncBot avatar Jan 13 '24 01:01 IssueSyncBot