Search Issue Tracker
Fixed in 10.0.0-preview.26
Votes
0
Found in [Package]
9.0.0-preview.72
Issue ID
1320356
Regression
No
[XR][URP][Cinemachine] A warning message is being spammed when XR Camera has CinemachineBrain Component
Reproduction steps:
1. Open the user's attached "Unity URP Quest2 XR Test v3.zip" project
2. Load the SampleScene
3. Enter Play mode
4. Press Alt+Y on the keyboard
5. Observe the Console window
Expected result: the "Cannot set field of view on camera with name 'Main Camera' while VR is enabled" warning is logged once
Actual result: the "Cannot set field of view on camera with name 'Main Camera' while VR is enabled" warning is being spammed
Reproducible with: URP 7.5.3 (2019.4.21f1), 9.0.0-preview.72 (2020.2.0b1)
Not reproducible with: URP 10.0.0-preview.26 (2020.2.0b1), 10.3.2 (2020.2.7f1, 2020.3.0f1), 11.0.0 (2021.1.0b11), 12.0.0 (2021.2.0a8)
Could not test with 2018.4.(no URP package available)
Note: the whole warning message that is spammed:
Cannot set field of view on camera with name 'Main Camera' while VR is enabled.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Cinemachine.CinemachineBrain:PushStateToUnityCamera (Cinemachine.CameraState) (at Library/PackageCache/com.unity.cinemachine@2.6.3/Runtime/Behaviours/CinemachineBrain.cs:823)
Cinemachine.CinemachineBrain:ProcessActiveCamera (single) (at Library/PackageCache/com.unity.cinemachine@2.6.3/Runtime/Behaviours/CinemachineBrain.cs:609)
Cinemachine.CinemachineBrain:ManualUpdate () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Runtime/Behaviours/CinemachineBrain.cs:366)
Cinemachine.CinemachineBrain:LateUpdate () (at Library/PackageCache/com.unity.cinemachine@2.6.3/Runtime/Behaviours/CinemachineBrain.cs:323)
Tested with:
- Oculus Rift
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 10.0.0-preview.26):
No longer reproducible in URP 10.0.0-preview.26 package version which is available in Unity 2020.2.0b1 and above.
Resolution Note (fix version 10.0.0-preview.26):
Verified with: 2020.2.0b9