entity-query-patterns-requireforupdate-gating
CommunitySkip systems until prerequisites exist.
Software Engineering#stability#feature flags#unity-dots#RequireForUpdate#subscene baking#entity queries#ecs gating
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents first-frame crashes and wasted work in Unity DOTS by ensuring systems only update when their required singletons, feature-flag tags, or prerequisite entity queries are present.
Core Features & Use Cases
- Senior RequireForUpdate gating: Enforces that every ISystem/SystemBase declares prerequisites in OnCreate so OnUpdate is skipped when the world is not ready.
- AND semantics across multiple gates: Combines multiple RequireForUpdate calls so the system runs only when all declared conditions are satisfied.
- Correct query-based prerequisites: Uses state.RequireForUpdate(query) when the requirement is “at least one entity matching complex conditions,” not merely “a singleton exists.”
- Empty tag feature-flag pattern: Gates feature systems on baked empty component tags derived from authoring toggles, generalizing ExecuteXxx-style patterns.
Quick Start
Use this skill when authoring a new DOTS system so you add state.RequireForUpdate<T>() or state.RequireForUpdate(query) in OnCreate, then verify that toggling feature flags makes the gated systems appear or disappear.
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: entity-query-patterns-requireforupdate-gating Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#entity-query-patterns-requireforupdate-gating 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.