Search Issue Tracker
By Design
Votes
2
Found in
2022.2.0a9
Issue ID
UUM-2784
Regression
No
[XR][SRP] Changing Camera.stereoTargetEye via script does not change the Target Eye
Reproduction steps:
1. Open the attached "case_1358687_hdrp.zip" project
2. Load SampleScene
3. Enter Play mode
4. Select the "Main Camera" GameObject in the Hierarchy window (XRRig > Camera Offset)
5. Change the "TargetEyeMask" value to None in the "TestTargetEye" Component
Expected result: the camera does not render to HMD
Actual result: the camera still renders to HMD
Reproducible with: SRP 7.7.1 (2019.4.29f1), 10.5.1 (2020.3.17f1), 11.0.0 (2021.1.18f1), 12.0.0 (2021.2.0b9, 2022.1.0a5)
Note: not reproducible with built-in render pipeline.
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
URP does not support Camera.stereoTargetEye.
To disable XR rendering through script, use UniversalAdditionalCameraData.allowXRRendering
See: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@16.0/api/UnityEngine.Rendering.Universal.UniversalAdditionalCameraData.html
Close this as by design.