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
- WebGL build is missing "malloc" and "free" functions when passing "-sERROR_ON_UNDEFINED_SYMBOLS=0" to emscriptenArgs
- UI Toolkit Slider element is not controlled correctly when using a gamepad controller
- Audio output is of low volume when the Speaker Mode is set to Quad and the Audio Source in the Scene is behind the Camera
- A user gets an error "Failed to import package with error: Cannot import package in play mode." when tries to import TMP essentials, examples or extras
- The Particle System's ShowOnlySelected function doesn't work when toggled via a shortcut
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