Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors in Unity 2023 alpha #15

Open
vincismurf opened this issue Oct 12, 2023 · 8 comments
Open

Compilation errors in Unity 2023 alpha #15

vincismurf opened this issue Oct 12, 2023 · 8 comments

Comments

@vincismurf
Copy link

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&)

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

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

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

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

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

Fields serialized in Editor, class 'OVRExternalComposition'
'foregroundCameraGameObject' of type 'UnityEngine.GameObject'
'foregroundCamera' of type 'UnityEngine.Camera'
'backgroundCameraGameObject' of type 'UnityEngine.GameObject'
'backgroundCamera' of type 'UnityEngine.Camera'

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Fields serialized in target platform, class 'OVRExternalComposition'
'foregroundCameraGameObject' of type 'UnityEngine.GameObject'
'foregroundCamera' of type 'UnityEngine.Camera'
'backgroundCameraGameObject' of type 'UnityEngine.GameObject'
'backgroundCamera' of type 'UnityEngine.Camera'
'renderCombinedFrame' of type 'System.Boolean'
'audioListener' of type 'UnityEngine.AudioListener'
'audioFilter' of type 'OVRMRAudioFilter'
'mrcRenderTextureArray' of type 'UnityEngine.RenderTexture[]'
'frameIndex' of type 'System.Int32'
'lastMrcEncodeFrameSyncId' of type 'System.Int32'
'mrcForegroundRenderTextureArray' of type 'UnityEngine.RenderTexture[]'
'cameraPoseTimeArray' of type 'System.Double[]'

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

@vincismurf
Copy link
Author

Happens when you make a build on Android platform

@jordimeije
Copy link

I got this problem too

@secretportalxr
Copy link

This happens to me too in 2022.3.16 when building for android. I tried deleting my Library folder (as I found in a solution from a different thread), but it's still happening. Anyone manage to fix this?

@secretportalxr
Copy link

Adding OVR_ANDROID_MRC as an extra compiler flag in player settings fixed it for me

@travis-tap-3d
Copy link

I can also confirm this happens when building Android after upgrading to 2022.3.16 and just as @secretportalxr graciously pointed out, adding the OVR_ANDROID_MRC seems to fix it. Weird.

@technocrack
Copy link

@secretportalxr this solution works thanks

@yasmeen2001234
Copy link

I fixed it by adding [NonSerialized] above each variable

@krso92
Copy link

krso92 commented Jul 3, 2024

After updating Unity version to 2021.3.40f1 this error occured for the first time, and adding OVR_ANDROID_MRC fixed it for me also.
If someone have more context on why this is happening, it would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants