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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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.