dots-baking-patterns

Fix Unity DOTS Baker patterns for deterministic dependency-correct baking.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill dots-baking-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dots-baking-patterns
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-dots/dots-baking-patterns
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill dots-baking-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or stale Unity DOTS baking results by guiding you to create deterministic entity output with correct dependency tracking and explicit transform usage.

Core Features & Use Cases

  • Dependency-safe baking: Ensures referenced assets and sibling components re-trigger baking correctly via proper DependsOn usage and baker-mediated reads.
  • Correct TransformUsageFlags: Selects the smallest valid transform archetype and avoids missing transforms or unnecessary chunk bloat.
  • Prefab Entity references + fan-out: Converts referenced prefabs and creates additional entities from one authoring source using bake-time patterns that avoid runtime spawners.
  • Senior guardrails: Avoids common failure modes like bypassing dependency tracking (e.g., reading authoring.transform), early-outing before DependsOn, and introducing nondeterminism.

Quick Start

Ask an AI to review your Baker<T> implementation for missing DependsOn, incorrect TransformUsageFlags, and unsafe prefab/transform handling in your Unity DOTS project.

Frequently Asked Questions about dots-baking-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why are my Unity DOTS entities stale or missing references after baking?

Stale entities and null references occur when baking bypasses dependency tracking, such as reading authoring.transform directly. Proper Baker<T> implementations require correct DependsOn ordering and baker-mediated component access to ensure deterministic output.

How do I fix missing incremental bakes in Unity DOTS?

Incremental bakes fail when DependsOn is called after an early-out or ignored for referenced assets. Fixing dependency-safe baking ensures assets and sibling components re-trigger the baker correctly during Live Baking in the Unity Editor.

What are TransformUsageFlags in Unity DOTS baking?

TransformUsageFlags define the transform archetype required by a baker. Selecting the smallest valid flag avoids unnecessary chunk bloat and prevents missing transforms during the authoring-to-entity conversion process.

How do I convert prefab references safely in a Unity DOTS baker?

Convert prefab references safely using GetEntity within the Baker<T> process. This bake-time pattern avoids runtime spawners and handles prefab fan-out by creating additional entities deterministically from one authoring source.

Does Unity DOTS live baking require deterministic bake-time logic?

Yes, Live Baking requires deterministic logic to maintain correctness in the Editor and build pipelines. Avoiding nondeterministic patterns and ensuring safe prefab conversion via GetEntity prevents broken references during incremental updates.

What is the best way to review a Baker<T> implementation for Unity DOTS?

Review Baker<T> implementations by checking for missing DependsOn calls, incorrect TransformUsageFlags, and unsafe transform handling. Adding senior guardrails prevents common failure modes like bypassing dependency tracking and early-outing.