oculus-samples / Unity-TheWorldBeyond

Presence Platform showcase demonstrating usage of Scene, Passthrough, Interaction, Voice, and Spatializer. The Oculus SDK and other supporting material is subject to the Oculus proprietary license. Multiple licenses may apply.
MIT License
321 stars 88 forks source link

Unity3D higher then 2022.3.14 #23

Open jamray747 opened 7 months ago

jamray747 commented 7 months ago

When building for Android after upgrading to 2022.3.16, you will need to add "OVR_ANDROID_MRC" to compiler flags, to avoid following errors:

Type '[Oculus.VR]OVRExternalComposition' has an extra field 'renderCombinedFrame' of type 'System.Boolean' in the player and thus can't be serialized UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Type '[Oculus.VR]OVRExternalComposition' has an extra field 'audioListener' of type 'UnityEngine.AudioListener' in the player and thus can't be serialized UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Type '[Oculus.VR]OVRExternalComposition' has an extra field 'audioFilter' of type 'OVRMRAudioFilter' in the player and thus can't be serialized UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)