ijobchunk-chunk-job

Implement chunk-level ECS processing with change filtering and enabled-mask handling.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill ijobchunk-chunk-job
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ijobchunk-chunk-job
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-dots/ijobchunk-chunk-job
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill ijobchunk-chunk-job

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the need to process ECS entities with maximum control at the chunk level, where you must handle chunk change filtering, enabled masks, and deterministic access patterns safely and efficiently.

Core Features & Use Cases

  • Chunk-level change filtering: Use chunk.DidChange(ref typeHandle, lastSystemVersion) to skip unchanged chunks and reduce work in sparse-update scenarios.
  • Enabled mask handling: Correctly respect IEnableableComponent by considering useEnabledMask and chunkEnabledMask when entities may be disabled.
  • High-throughput data access: Drive performance-critical pipelines by using direct component access patterns (e.g., GetNativeArray or required data pointers) and managing explicit sort keys/state dependencies.
  • Use case: Updating LocalTransform using Velocity only when Velocity changed, while ensuring the job schedules correctly with state.Dependency to avoid races.

Quick Start

Schedule a Burst-compiled IJobChunk that checks chunk.DidChange for your read components, then iterate the chunk arrays (or use required pointers) to apply your updates and return the chained state.Dependency.

Frequently Asked Questions about ijobchunk-chunk-job

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use IJobChunk for chunk-level ECS processing in Unity DOTS?

Chunk-level change filtering in Unity DOTS allows you to call chunk.DidChange with lastSystemVersion to skip unchanged chunks entirely, significantly reducing computational work in sparse-update scenarios where only specific components change.

How does chunk change filtering work in Unity DOTS?

Chunk change filtering in Unity DOTS allows you to call chunk.DidChange with lastSystemVersion to skip unchanged chunks entirely, significantly reducing computational work in sparse-update scenarios where only specific components change.

How do I handle disabled entities with enabled masks in an ECS chunk job?

To handle disabled entities in an ECS chunk job, you must respect IEnableableComponent by checking useEnabledMask and chunkEnabledMask during iteration, ensuring disabled entities are correctly excluded from processing logic.

When should I use IJobChunk instead of higher-level abstractions for transform updates?

You should use IJobChunk for transform updates when building performance-critical pipelines requiring explicit query scheduling and dependency chaining, bypassing higher-level abstractions to achieve maximum control over data access patterns.

Why do I need to refresh component type handles before scheduling a chunk job?

You need to refresh version-stamped component type handles before scheduling a chunk job because handles must match the current system version to correctly evaluate chunk.DidChange and avoid data races when updating state.Dependency.