wave6-entity-manager-set-component-enabled

Community

Instantly toggle component enabled state.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a reliable way to immediately enable or disable an IEnableableComponent for one entity or for all entities matching a query, directly on the main thread.

Core Features & Use Cases

  • Immediate main-thread toggling: Use EntityManager.SetComponentEnabled or SystemAPI.SetComponentEnabled to flip the enabled bit in the same frame.
  • Single-entity and query-wide operations: Enable/disable a specific entity or apply a batch change across all entities that match a query.
  • Correct usage guidance: Helps you avoid common ECS pitfalls such as modifying enabled state during iteration and using the wrong checks for enabledness.

What to expect (example)

  • Turning off behavior for all entities matching a query when you need the change to take effect instantly.
  • Branching gameplay logic in the same frame by checking enabled state with IsComponentEnabled and then toggling components as needed.

Quick Start

Tell the AI to provide the correct main-thread pattern for calling SystemAPI.SetComponentEnabled on a query and for guarding enabled-state checks with IsComponentEnabled.

Dependency Matrix

Required Modules

None required

Components

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: wave6-entity-manager-set-component-enabled
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave6-entity-manager-set-component-enabled

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.