Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

VR Application Pauses When Its Window Loses Focus

Discussion in 'AR/VR (XR) Discussion' started by bmoodyP3, Jan 9, 2020.

  1. bmoodyP3

    bmoodyP3

    Joined:
    Jul 23, 2019
    Posts:
    12
    Unity: 2018.3.6
    Oculus: 1.39.

    Hi all,

    I am having an issue with my VR application built with the Oculus Utilities package.

    I am trying to create an app that runs on both the Oculus Rift and the HTC Vive through the Oculus integration, as described in this document:
    https://developer.oculus.com/docume...ncepts/unity-cross-platform-dev/?locale=en_US

    I have had success doing so, but when I run my application with a Vive, it will pause as soon as the application window goes out of focus and show the SteamVR window. This is not acceptable behavior due to the requirements of the project. I have already checked, "Run in Background" within the Player Settings.

    Does anyone else know how to solve this?
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Are you sure nothing is overriding the background running value during runtime. Print the value to the screen runtime to check it