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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.