Forum Discussion
viteichris
8 years agoProtege
How do I correctly implement VR focus with Unity (To pass VRC.PC.Input.1)
I'm trying to make sure our app is ready to go, but I'm not certain on what exactly I can/should do to ensure we pass this VRC: Currently we drop into our pause menu when the app loses focus, but it...
Spoon420
7 years agoExplorer
Add the following lines to your update method on OVRPlayerController
if (OVRManager.hasInputFocus)
{
Time.timeScale = 1;
CameraRig.enabled = true;
}
if (OVRManager.hasInputFocus == false)
{
Time.timeScale = 0;
CameraRig.enabled = false;
}
Oculus should have this as part of their default script there is no reason I know of not too since it is required.
Oculus should have this as part of their default script there is no reason I know of not too since it is required.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device