What happen when I don't declare both WithBurst() and WithoutBurst() for Entities query?

Hi. As the title said, what happen when I didn’t specify both WithBurst() and WithoutBurst() for JobComponentSystem.Entities?

Will the code compiled with Burst enabled? or disabled?

Thanks.

  • .Schedule : Burst enabled.
  • .Run : Burst enabled but work on main thread. Same restriction as jobs in the code scope.
  • .WithStructuralChange.Run : Burst disabled and on main thread but you can use EntityManager/etc.
5 Likes