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
- Text is unreadable when DLSS is applied to the Canvas with Render Mode set to World Space
- NullReferenceException errors appear in the Console when changing the values of Visual Effect Control Clip Events' Attributes
- Crash on TextCore::OTL_TableReader::GetOpenTypeLayoutTables when using Japanese Font as TMP Fallback
- TreeView.AddItem performance regression when opening EditorWindow
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
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.