- Home /
How to start and stop unity within an existing iOS app
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
Hi DanS,
Did you find how to quit the unity from iOS App? Please let me know the solution if you found the way.
Answer by Malsh · Apr 02, 2013 at 08:29 AM
hi have you found any solution for this? I also need to completely close down the Unity side of the app and return to the app only side.
Thank you!