icleanupcomponentdata-runtime
CommunityClean up destroyed entities safely.
Software Engineering#resource management#entity-lifecycle#unity-dots#ics cleanup component data#entity destruction#tombstone pattern#ecb systems
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the problem of releasing external resources when a Unity DOTS entity is destroyed, without losing the ability to detect the destroyed entity.
Core Features & Use Cases
- Runtime tombstone lifecycle: Keeps an
ICleanupComponentDatacomponent afterDestroyEntityso systems can observe and act on destroyed entities. - Correct on-destroy cleanup pattern: Uses a cleanup query that targets destroyed entities via
.WithNone<MainComponent>(), releases the associated handle/resources, then removes the cleanup component to finalize true destruction. - Resource-safe destruction workflow: Supports scenarios where you must explicitly free GPU buffers, physics bodies, audio instances, spatial index entries, or registry slots at destruction time.
Quick Start
Ask the AI to add an ICleanupComponentData cleanup component to your entities, then create a cleanup system that detects destroyed entities and releases resources before removing the cleanup component.
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: icleanupcomponentdata-runtime Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#icleanupcomponentdata-runtime 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.