wave6-baker-set-component-enabled

Community

Set enabled state at bake time safely.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Eliminates runtime “first-frame” conditionals by letting you define whether an IEnableableComponent starts enabled directly during DOTS baking.

Core Features & Use Cases

  • Bake-Time Initialization: Uses Baker.SetComponentEnabled<T>() to ensure the component is present but inactive (or active) from the moment the SubScene loads.
  • Correct Baker Ordering: Ensures you add the component first (AddComponent<T>) and then set its enabled state to avoid exceptions.
  • Authoring-Driven Variability: Supports per-instance initial state driven by authoring fields (e.g., a bool that varies per prefab/scene instance).

Quick Start

Ask the AI to “show me the correct Baker pattern to add Carry and set it disabled at bake time based on a BallAuthoring.startCarried flag.”

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