transform-usage-flags

Community

Stop wrong transform components at bake time

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

TransformUsageFlags ensures each entity gets the correct transform components during ECS baking, preventing both wasted components on data-only entities and missing components that break moving entities.

Core Features & Use Cases

  • Precise bake-time transform declaration: Choose TransformUsageFlags.None, Dynamic, Renderable, or ManualOverride to match runtime behavior.
  • Correct behavior for moving vs data-only entities: Avoid spurious LocalTransform/LocalToWorld on entities that never move, and ensure transforms exist when entities do move.
  • Prefab-safe entity references: Use the matching flags when calling GetEntity for prefab fields to keep archetypes consistent.
  • Batching-friendly manual overrides: Use ManualOverride with ComponentTypeSet to minimize structural changes while taking full responsibility for adding transforms.

Quick Start

In your Baker, call GetEntity with TransformUsageFlags.Dynamic for entities that move at runtime and use TransformUsageFlags.None for config/singletons so that only the required transform components are baked.

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: transform-usage-flags
Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#transform-usage-flags

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.