Search Issue Tracker
Fix In Review for 2019.4.X
Votes
11
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.2.0f1
2019.3.0a1
Issue ID
1174547
Regression
No
OnApplicationFocus() is not called when leaving or re-entering a VR application via the built-in "Home" or "Menu" buttons
How to reproduce:
1. Open the user's project
2. Open the "SampleScene/Scenes" Scene
3. Enter the Play Mode
4. With HMD on press the Home button on your controller
5. Observe the Console
Expected result: OnApplicationFocus prints out false
Actual result: OnApplicationFocus is not called
Reproducible with: 2017.4.31f1, 2018.4.6f1, 2019.1.14f1, 2019.2.1f1, 2019.3.0a12
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
- Shadows are not cast when the Light's CullingMask and the GameObject's Layer do not match
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
plmx
Aug 08, 2019 17:21
I submitted the original bug for this. The issue is this: There is currently no way at all using plain Unity to determine if the VR app loses focus in VR (i.e. if the user goes to visit the VR 'home' or 'store' by pressing the 'system' button) . This is bad because the game should be able to react to this event by going into pause mode.
This applies to Rift, Vive, and Windows Mixed Reality headsets at least.
It should be pointed out that OpenVR does contain an "InputFocus" event which works for the Vive, the WMR headsets, and for the 'menu' button on the Rift (which leads to SteamVR), but not for the 'Oculus' button on the Rift (which leads to the Oculus menu).