Hi,
I’m attempting to integrate a Unity project into an existing iOS UIkit based app. The Unity part of the app serves as a “video player”, but the UIKit app contains the core of the functionality.
I’ve successfully managed to integrate the Unity player into the app and delayed the launch of Unity until the point it is needed (by calling “startUnity” method within the AppController.mm) in response to a button click inside the app.
However, the issue now is closing the Unity player to free up memory once the user is finished with it. I’ve integrated a button which calls “UnityPause(YES)” but this only pauses unity rather than closing it completely and freeing up resources.
Does anyone know how to completely close down the Unity side of the app and return to the UIKit only side?
Many thanks,
Dan