require-for-update-gate
CommunityPrevent systems from running without prerequisites
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents ECS/Unity DOTS systems from running when required singleton or component prerequisites are missing, which eliminates boilerplate null-checks and avoids wasted scheduling work.
Core Features & Use Cases
- Precondition gating: Uses
state.RequireForUpdate<T>()inOnCreateto ensure a system only runs when the required singleton or component type exists. - Safe access pattern: Pairs the gate with
SystemAPI.GetSingleton<T>()inOnUpdate, relying on the gate to guarantee presence. - Combinable requirements: Supports AND-ing multiple
RequireForUpdatecalls so systems activate only when all conditions are satisfied. - Use Case: Only activate a spawn/movement system when a
SpawnerConfigsingleton and a scene-scoped marker component exist, avoiding early-frame errors and unnecessary work.
Quick Start
Tell the AI to add state.RequireForUpdate<YourRequiredSingleton>() and state.RequireForUpdate<YourSceneTag>() in OnCreate, then use SystemAPI.GetSingleton<YourRequiredSingleton>() inside OnUpdate.
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: require-for-update-gate Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#require-for-update-gate 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.