User interaction stop working when Start/Stop VR and dismiss current view controller #780
Description
I've embeded Unity project in native iOS app.
Everything is working here. I can open my unity nonVR scene, back to native view with a quit button.
When my view is unity scene mode I can toggle from VR to nonVR view.
The problem is if in my unity view I start&stop VR and quit unity to go back to my native view, touch support stop working. I made some tests and it seems that when appWillResignActive() is called, Unity
go in pause mode as usual, my app go back to my native viewController.
But touch handler is lock and UnityView don't disappear.
This problem happened only if I've enabled GVR at least on time.
Everything is working fine if I just go and back from native view to unity view without GVR Singleton loaded.
Any idea about this issue and how can I solve it ? Did I miss something ?
Found using:
- Google VR SDK version: 1.100.0
- Unity version: 2017.1.2p2
- Phone manufacturer, model, and O/S version: Apple iPhone 6s, iOS 11.1.1
- Viewer manufacturer & model: n/c
Steps to reproduce the issue:
- Embed unity app in native iOS app.
- Start Unity
- Toggle on/off VR mode
- Back to native view controller with quit button that has documented call appWillResignActive() and Pause Unity
- If VR mode is never used, Unity pause and touch handler + display back to native previous viewController
- if VR mode is used, Unity pause, touch and display are frozen. Native app is still active from background but Unity view stay at the top...