Skip to content

fix: MainThread check checks for Job execution #2226

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bitsandfoxes
Copy link
Contributor

Fixes #2216

The fix is straight forward: Based on the Unity docs JobsUtility.IsExecutingJob allows us to check whether this is getting called from within a job.

Keeping this as draft as I've been unable to reproduce this locally and adding something to the smoke tests would be really nice.

@bitsandfoxes bitsandfoxes marked this pull request as ready for review August 14, 2025 15:56
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

Successfully merging this pull request may close these issues.

IsMainThread check fails in burst context
1 participant