docs.unity.cn
    Show / Hide Table of Contents

    Struct Child

    Contains a buffer of all elements which have assigned this entity as their Parent.

    Namespace: Unity.Transforms
    Syntax
    [Serializable]
    [InternalBufferCapacity(8)]
    public struct Child : ICleanupBufferElementData, IBufferElementData
    Remarks

    The ParentSystem automatically adds and manages this component and its contents. You can read this list, but you shouldn't add or remove buffer elements.

    When an entity with this component is destroyed, the ParentSystem will automatically remove the Parent components from each child entity.

    Fields

    Name Description
    Value

    A child entity

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023