Skip to content

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
@bitsandfoxes bitsandfoxes requested review from a team, limbonaut, tustanivsky and vaind August 18, 2025 15:55
@bitsandfoxes bitsandfoxes merged commit 6a35504 into main Aug 25, 2025
96 checks passed
@bitsandfoxes bitsandfoxes deleted the fix/mainthread-job branch August 25, 2025 09:00
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
2 participants