Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2019.4.13f1
2020.2
2021.1
2021.2
Issue ID
1297139
Regression
No
[UWP] [WMR] OnGUI UI Elements break on HMD
How to reproduce:
1. Open the attached "Test WMR GUI.zip" project
2. Plug-in Acer HMD device
2. Switch and Build to UWP
3. Open Visual Studios solution -> Build project (Release, x64, Local machine)
4. Press on the "test" button in the top left -> Press that button again
Expected value: When pressing the button again value increments successfully
Actual value: When pressing the button again, it loses all functionality and no longer works
Reproducible with: 2018.4.30f1, 2019.4.20f1, 2020.2.2f1, 2021.1.0b4, 2021.2.0a3
Notes:
- The issue is not reproducible on Editor
- Built-in VR
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
- 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
Resolution Note (2021.2.X):
IMGUI (the system that calls 'OnGUI()', handles input, and rendering) is intentionally disabled when using an XR rendering path. This is because IMGUI works in screen space, and all screen space rendering is disabled in XR rendering paths because it appears "as close as possible" to the wearer's eyes, which can easily trigger VR sickness or even potentially damage a user's vision by inducing excess eye strain.
uGUI (https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/index.html) provides a world space camera mode for rendering into world space and this is supported for XR rendering paths.