wave8-baker-dependency-registration
CommunityEnsure incremental baking re-triggers correctly.
System Documentation
What problem does it solve?
This Skill prevents stale Unity DOTS baked data by ensuring a Baker explicitly registers external asset and component dependencies so Unity invalidates and re-bakes when those dependencies change.
Core Features & Use Cases
- Dependency tracking for external inputs: Use
DependsOn(...)for referenced assets and components that are read via raw Unity API rather than direct serialized fields. - Correct incremental baking behavior: Ensures SubScene baking re-triggers when ScriptableObjects, textures, or child components change—even when the primary authoring MonoBehaviour hasn’t changed.
- Anti-pattern prevention: Avoids silent correctness bugs caused by missing
DependsOnor relying on non-tracked reads (child traversal, rawGetComponentcalls).
Use case: your Baker reads a ScriptableObject config plus a child MeshRenderer to author entities; without DependsOn, changing the asset or child component can leave the previously baked entity data stale until a manual reimport.
Quick Start
In your Baker, call DependsOn(...) for every ScriptableObject/texture or child component you read through raw Unity APIs so incremental baking invalidates correctly.
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-baker-dependency-registration Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave8-baker-dependency-registration 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.