Search Issue Tracker
By Design
By Design in 2022.2.X
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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.
Resolution Note (2022.2.X):
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.