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
7 Replies
Replies have been turned off for this discussion
- kerskMeta EmployeeOVRManager.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.- VintageGreenAdventurer
Hey how can we do this in Unreal engine I can't find OVRmanager anywhere related to unreal nor run in background???
- PiooStudioHonored 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 ?
- hyperion337ExplorerOk awesome. We were blocked and need to use it for beta testing. Thanks for the info!
- edmidgettHonored GuestVery newbie to C# and the Windows 10 file hierarchy. Could anyone please tell me where to find the file OVRManager.cs so I can fix the black screen... I can not find it with a file search anywhere on the drive.
- edmidgettHonored GuestVery newbie to C# and the Windows 10 file hierarchy. Could anyone please tell me where to find the file OVRManager.cs so I can fix the black screen... I can not find it with a file search anywhere on the drive.
- MikeFTrusteeIt should be under assets/OVR/Scripts/OVRManager.cs
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
- 8 months ago