-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I restart after shutting down Unity? #400
Comments
I'm having the same issue in debug. The Unity Widget works fine when testing with ADB, but otherwise it freezes after exiting and re-opening the screen that contains it. To me this is happening with or without calling unload(). Edit: not when testing with ADB, but works fine only the first time the app is installed on the device: if I uninstall and reinstall the app the Unity Widget works at first launch and freezes on next launches. |
I fixed this issue with this way:
|
Great, thanks! This works for me. |
it's not work for me with unity 2020.3.11 |
Another step I followed is to removeView in tha native code.
I don't know if it will work, but you can try |
The code below work for me:
|
Cheers mate @smashmountainstudio! |
My game scene does not render the second time I try to play it. |
Upgrading to ^2022.1.0 from ^4.2.1 Worked for me. |
Describe the bug
When I use quit() on Android, the app quits. And when I use unload() the screen freezes when recreating Unity. Am I misunderstanding the function?
Log when the app is terminated with quit()
To Reproduce
Steps to reproduce the behavior:
Unity (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: