Jump to content

Vive OpenXR Version 1.0.13 can't be build using IL2CPP in Unity 2020.3.30f1


VRGiants

Recommended Posts

So I followed the instructions of the main Tutorial to get Vive OpenXR ready in my project:

https://developer.vive.com/resources/openxr/unity/tutorials/how-to-install-vive-openxr-plugin/
https://developer.vive.com/resources/openxr/unity/tutorials/getting-started-with-openxr/

But when i try to build the Game Using IL2CPP I get the following Error (tried in a new project)

NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: VIVE.HandTracking.HandTracking_OpenXR_API::intercept_xrWaitFrame_xrGetInstanceProcAddr
  at UnityEngine.XR.OpenXR.Features.OpenXRFeature.HookGetInstanceProcAddr () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.XR.OpenXR.OpenXRLoaderBase.InitializeInternal () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.XR.OpenXR.OpenXRLoaderBase.Initialize () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize()
UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync()
UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK()

How do I fix this?

Using Vive OpenXR Version 1.0.13 in Unity 2020.3.30f1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...