Skip to content
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

When are UniTasks called during their update loops? Do they follow script execution order at all? #559

Open
chris-janidlo opened this issue Mar 30, 2024 · 2 comments

Comments

@chris-janidlo
Copy link

For example, if a script at execution order position N queues up a UniTask, is that UniTask also updated at roughly execution order position N? Or are all UniTasks updated in a batch with essentially the same execution order position? (Depending of course on the order they were queued, as per #453.) And if so, where in the script execution order are they updated?

@neuecc
Copy link
Member

neuecc commented Apr 5, 2024

UniTask itself does not have a predefined position.
However, if you specify a PlayerLoopTiming(for example Delay), it will run at that specific point in the PlayerLoop.

@chris-janidlo
Copy link
Author

Does that mean with PlayerLoopTiming set to FixedUpdate or Update, it can execute at any arbitrary position?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants