Search Issue Tracker
Fixed
Fixed in 2022.3.0f1
Votes
19
Found in
2022.2.5f1
Issue ID
UUM-25995
Regression
Yes
[2022.2] “targetDisplay” doesn’t change the camera’s “Target Display” setting when called from the script
How to reproduce:
1. Open the attached “TargetDisplay.zip” project
2. Open the “SampleScene” Scene (Assets > Scenes > SampleScene)
3. Enter Play Mode and observe “Camera1” and “Camera2” GameObjects “Target Display” setting
Expected result: Cameras' “Target Display” settings are “Display 2” and “Display 3”
Actual result: Cameras “Target Display” setting is “Display 1”
Reproducible with: 2022.2.1f1, 2022.2.5f1
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.0f1, 2023.1.0a1, 2023.1.0b2
Reproduced on: macOS 12.4 (Intel)
-
AlbinZosimusJulius
May 19, 2023 14:00
This regression really is a blocker for applications that control multiple displays. As the camera components `m_TargetDisplay` field is only accessible from the native code or the serializer, it is impossible from the runtime to change this property.
The only workaround I found so far is to actually instantiating a new camera component for every display change. Super ugly...
-
Teatoon
May 15, 2023 10:13
Tested in 2022.2.19f1, problem is still there.
-
Teatoon
Apr 28, 2023 21:43
I confirm that this is not fixed in 2022.2.16f1
-
paljoci
Apr 28, 2023 13:33
This issue is still not fixed in 2022.2.17f1
-
naonaonaoue
Apr 21, 2023 11:15
This issue is still not fixed in 2022.2.16f1.
Do your best!! -
callumroseFC
Mar 16, 2023 15:50
I can verify that I've seen this bug too in 2022.2.10f1 and 2022.2.11f1 on Windows. CASE IN-35493
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
- “RenderTexture.Create failed: requested size is too large.” errors are thrown and the Inspector window is black when selecting a CubemapArray texture
- Crash on AMDUnityPlugin.DLL in specific built project when using FSR2 upscaler
- RenderObjects does not have any Depth texture bound when Event is set to AfterRenderingPostProcessing
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
Resolution Note (fix version 2022.3.0f1):
Fixed in: 2022.3.0f1