using Unity.Entities; namespace Unity.Transforms { /// /// Side-Channel input for attaching child to parent transforms. /// To use: Create new entity with Attach component. /// On TransformSystem update, Attached and Parent components will /// be added to child. /// To detach: Remove Attached component from child. /// To change parent: Create new entity with Attach component defining new relationship. /// public struct Attach : IComponentData { public Entity Parent; public Entity Child; } public class AttachComponent : ComponentDataWrapper { } }