What problem does it solve?
It eliminates the tedium and performance pitfalls of writing per-entity processing loops by providing a safe, Burst-compatible parallel pattern that integrates with DOTS scheduling.
Core Features & Use Cases
- Source-generated per-entity jobs (IJobEntity): Derives the job query from your Execute method signature to automatically match entities with the right components.
- Thread-parallel scheduling (ScheduleParallel): Executes work across worker threads while correctly participating in the Dependency chain.
- Burst-friendly data flow: Encourages clear read/write intent via
in/ref parameters and optional query filters using attributes.
Use case: Applying velocity updates to many entities every frame in a production simulation where the work is independent per entity and benefits from Burst and parallelism.
Quick Start
Add a Burst-compiled partial struct implementing IJobEntity with an Execute signature that takes your components, then schedule it with ScheduleParallel and assign the result back to state.Dependency in your system’s OnUpdate.