I'm working on iOS application which is going to include a few unity games.
And I investigate an opportunity to exit from the Unity game to the native iOS app with games list.
I know that the Unity provides methods Application.Quit() and Application.Unload()

I haven't try but I'm not sure that Application.Unload() is correct ways to exit from unity to the native iOS app.

  • \$\begingroup\$ Googling "unity embed game into native app" leads to a few articles which might help you. I believe neither "quit" nor "unload" will help you switch active contexts. \$\endgroup\$ – metamorphling Feb 17 '20 at 9:16

You should not use Application.Quit() on iOS devices per unity documentation. If this is an embedded application inside an iOS application then Application.Unload() is exactly what you want. It will release the memory associated with Unity scenes and game elements.

If this isn't an embedded game you should let the user decide when to close the game application.

  • \$\begingroup\$ I tried that and I was thinking that Application.Unload() close Unity player and just display iOS native app, but nothing happened. \$\endgroup\$ – Atlantis Feb 19 '20 at 9:39
  • \$\begingroup\$ @Atlantis that seems like something you should cover in your question. \$\endgroup\$ – DMGregory Jul 17 '20 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.