Forum Discussion
hyperion337
9 years agoExplorer
Ramifications of setting OVRManager.runInBackground to true?
Are there ramifications of setting OVRManager.runInBackground to true? it's line 474 of OVRManager.cs
kersk
9 years agoMeta Employee
OVRManager.runInBackground is a workaround that a handful of apps needed for the 1.3 release. It essentially disables our automatic handling of suspending game simulation, rendering, and audio playback when the headset is removed or when the user switches focus to Oculus Home. This does allow your game loop / C# scripts to continue running in the background, but then it's up to you to make sure your app does not impact the experience of the foreground VR app (i.e., you need to carefully manually pause rendering / music / etc).
Note that we are working on a cleaner solution that will be exposed through Unity's "run in background" checkbox and this workaround will be going away once that is available. So I'd only recommend using this if you are blocked by the current behavior.
Note that we are working on a cleaner solution that will be exposed through Unity's "run in background" checkbox and this workaround will be going away once that is available. So I'd only recommend using this if you are blocked by the current behavior.
PiooStudio
1 year agoHonored Guest
"Note that we are working on a cleaner solution that will be exposed through Unity's "run in background" checkbox"
What is the result of this now in 2024 ?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago