dots-entity-lifecycle

Community

Prevent invalid destroys and orphan references.

AuthordyCuong03
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves Unity DOTS entity-lifecycle bugs where structural changes invalidate queries and stale Entity handles cause exceptions or orphan references.

Core Features & Use Cases

  • ECB-safe structural changes during iteration: record DestroyEntity/Add/Remove intent in an EntityCommandBuffer instead of mutating the world mid-query.
  • Two-phase teardown with ICleanupComponentData: defer true destruction until a dedicated phase removes the cleanup component.
  • Stale Entity validation & dangling ref debugging: safely check Exists/HasComponent before dereferencing and understand (Index, Version) generation behavior.
  • Subscene load/unload and orphan reference mitigation: avoid refs that become invalid when subscene-owned entities unload.
  • Failure-mode driven guidance: target common symptoms like “entity already destroyed,” immortal tombstones, and cleanup order mistakes.

Quick Start

Use dots-entity-lifecycle when you need to destroy DOTS entities safely during gameplay, implement ICleanupComponentData two-phase cleanup, and debug invalid/dangling Entity reference failures.

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

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.