-
-
Notifications
You must be signed in to change notification settings - Fork 851
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
Can't exit await when stopping Unity Editor #588
Comments
The problem here is that you're using I recommend changing the code to something like this instead private async UniTaskVoid OnDestroyAsync() |
I tried the code I was presented, but it didn't work |
Oh, you DO want the code to continue when leaving PlayMode? Don't use
UniTask -- it specifically is designed to not do this. Use built-in Task
instead.
…On Sun, Oct 20, 2024, 11:54 PM nyancodev ***@***.***> wrote:
I tried the code I was presented, but it didn't work
After all there is await that does not proceed when the editor is stopped
—
Reply to this email directly, view it on GitHub
<#588 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNKVBKOVFAQV5SHR6QYJMLZ4SQIZAVCNFSM6AAAAABIQQ4JWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVG42TSMRSGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unity: 2022.3.21f1
UniTask: 2.5.4
If you stop the Unity Editor with this code, it will not advance to wait3
If you destroy GameObject, proceed to wait3
Is this behavior due to the fact that PlayerLoop must be stopped in the Unity Editor?
The text was updated successfully, but these errors were encountered: