0
\$\begingroup\$


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.

\$\endgroup\$
1
  • \$\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\$ Feb 17, 2020 at 9:16

1 Answer 1

0
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\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, 2020 at 9:39
  • \$\begingroup\$ @Atlantis that seems like something you should cover in your question. \$\endgroup\$
    – DMGregory
    Jul 17, 2020 at 22:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .