cancel
Showing results for 
Search instead for 
Did you mean: 

Allow OVRManager to pause the game instead of restarting the app.

comerobi
Explorer
Hello everybody,

I am developing an app for GearVR and trying to implement the back button functionality on the device.

Now, I already have two static methods that pause and resume the game accordingly, but how can I have the OVRManager.cs not to restart the app everytime the back button is clicked, rather, pause and resume the game using my own methods?

Thank you
Roberto
1 REPLY 1

comerobi
Explorer
Solved:

Move your <intent-filter> from "com.unity3d.player.UnityPlayerProxyActivity" to "com.unity3d.player.UnityPlayerNativeActivity" (cut and paste), like this:

<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
            ......
            ......
       <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.INFO" />
        </intent-filter>
         ......
         .......
</activity>

It took me days to figure it out...............

Roberto