wave8-baker-dependency-registration

Community

Ensure incremental baking re-triggers correctly.

AuthordyCuong03
Version1.0.0
Installs0

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 DependsOn or relying on non-tracked reads (child traversal, raw GetComponent calls).

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 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: 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.
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.