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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
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.