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
- 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 (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.