Search Issue Tracker
Fixed in 5.3.6
Votes
0
Found in
5.3.4p5
Issue ID
792618
Regression
No
[WSA] on Universal 10 Screen.orientation returns incorrect orientation state on startup
When setting the default orientation to "Portrait", but running it in desktop mode on the Surface 4, starting in landscape orientation. In this case the orientation will be reported to be Portrait, even though the OS has forced it to be in landscape.
Repro steps:
- Set the default orientation to Portrait in Player Settings.
- Put your Surface tablet in desktop mode (not tablet mode) and out it in landscape left orientation.
- start the app, it will open in a window, forced into landscape by OS regardless of default orientation.
- the app will wrongly report "Portrait" as its orientation.
- rotate the device to another orientation, the orientation will be updated correctly.
So it seems as if Unity knows the correct orientation at all times, but is not updating the default orientation API correctly on startup in these cases.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment