wave8-ijobchunk-use-enabled-mask-guard
CommunityPrevent disabled-entity bugs in IJobChunk
System Documentation
What problem does it solve?
This Skill helps you correctly handle IEnableableComponent bitmasks in Unity ECS IJobChunk jobs so you never process disabled entities or accidentally skip enabled ones.
Core Features & Use Cases
- Correct enabled-entity iteration: Uses the
useEnabledMaskflag andChunkEntityEnumeratorto iterate only enabled entities within a chunk. - Safe performance-aware fast path: Falls back to a simple
forloop whenuseEnabledMaskis false to avoid unnecessary mask overhead. - Job-choice guidance: Recommends using IJobEntity when possible because it handles enableable masks automatically, and uses this guard only when IJobChunk is required.
Use Case Example: When building a state-machine style simulation where some entities (e.g., Active/Sleeping/Dead variants) are enableable, applying this guard ensures only active (enabled) entities get updated each frame.
Quick Start
Tell your AI assistant to review your IJobChunk implementation and ensure it iterates enabled entities using useEnabledMask and ChunkEntityEnumerator when the query includes any IEnableableComponent.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wave8-ijobchunk-use-enabled-mask-guard Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave8-ijobchunk-use-enabled-mask-guard Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.