wave5-parent-child-hierarchy-dynamic
CommunitySafely reparent entities in real time
Software Engineering#hierarchy#transforms#ecb#unity-dots#structural-changes#dynamicbuffer#entity-reparenting
AuthordyCuong03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Runtime parent/child hierarchy changes in Unity DOTS can break transform propagation or corrupt buffer iteration when structural changes occur while iterating over DynamicBuffer<Child>.
Core Features & Use Cases
- Runtime attach/detach via ECB: Uses an Entity Command Buffer to reparent safely without invalidating iteration.
- Correct DynamicBuffer<Child> handling: Provides safe iteration patterns and batch operations to detach or adjust many children efficiently.
- Transform propagation correctness: Ensures required components (like LocalTransform) exist so hierarchy world-space results aren’t silently skipped.
- Use Case: Implement weapon pickup (mount/dismount child entities), vehicle mounting (reparent character parts), or runtime character part assembly (bulk attach/detach).
Quick Start
In your system, reparent children by iterating the parent’s DynamicBuffer<Child> and issuing detach/attach structural changes through an ECB, ensuring each attached child has a LocalTransform.
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: wave5-parent-child-hierarchy-dynamic Download link: https://github.com/dyCuong03/unity-agent-team/archive/main.zip#wave5-parent-child-hierarchy-dynamic 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.