What problem does it solve?
Prevents data races and non-deterministic behavior by ensuring every scheduled Unity ECS job participates in the correct dependency chain through state.Dependency.
Core Features & Use Cases
- Automatic read/write ordering: Enforces correct sequencing between systems by wiring scheduled JobHandles into the ECS scheduler via state.Dependency.
- Reliable job chaining: Supports both parallel and sequential job patterns by passing state.Dependency into each Schedule/ScheduleParallel call and assigning the returned handle back.
- Controlled synchronization: Limits state.Dependency.Complete() to only the cases where main-thread results are required in the same frame.
Use case: When you schedule multiple IJobEntity or IJobChunk jobs across one system (e.g., a Prepare job then a Consume job), this Skill ensures Consume runs only after Prepare finishes and that downstream systems observe the correct completion dependency.
Quick Start
Update every job schedule call in your OnUpdate to accept the current state.Dependency and assign the returned JobHandle back to state.Dependency.