- Home /
Queries hit triggers can only be called from the main thread
hello folks, this is my first time working with unity's job system so I might be missing something obvious but here's my situation, I have a job that calls a CalculateColliders() function in another script in which I do a simple overlapcircle check Physics2D.OverlapCircleAll(WorldPosition, tileDiameter, ObstaclesLayer);
however once I play I get this error get_queriesHitTriggers can only be called from the main thread
I know that means I should only call overlapcircle from the main thread but I need to call it this way, so is there a fix or a workaround?
Your answer
![](https://koobas.hobune.stream/wayback/20220613035222im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Independent Concurrent Physics Simulations 0 Answers
multithreading physX 1 Answer
how to capsule cast from within Entities.ForEach job? ECS 1 Answer
2D 360 degress platformer example needed 0 Answers