Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
rfunk82's avatar
rfunk82
Explorer
8 years ago

Pause game when Oculus home was pressed (App rejected)

My app was rejected because it fails to "When bringing up the Universal Menu, the gameplay should pause in the background."

Is this a setting that I have to enable/disable? or somewhow I need to create this behavior from scratch?

Thanks!

4 Replies

Replies have been turned off for this discussion
  • Also, I did uncheck "Run in background" from Player Settings, but it did nothing, game still runs when I press the Oculus Home button
  • This seems to happen only in the unity editor. I ran the game outside of the editor (.exe) and it works fine.
  • You need to pause the game itself using something like this:

            //Pause the AudioListener
            AudioListener.pause = true;

            //Pause the game by setting time to 0
            Time.timeScale = 0.000001f;
  • Anonymous's avatar
    Anonymous
    Approved
    Someone could fix it?
    I unchecked run in background, but the app is still not paused when the user removed the HMD.