docs.unity.cn
    Show / Hide Table of Contents

    Struct Parent

    This component specifies the parent entity in a transform hierarchy.

    Namespace: Unity.Transforms
    Syntax
    [Serializable]
    public struct Parent : IComponentData, IQueryTypeParameter
    Remarks

    If present, this entity's transform is implicitly specified relative to the parent's transform rather than in world-space.

    Add or remove this attribute to your code in order to add, change, or remove a parent/child relationship. The corresponding Child component is automatically added by the ParentSystem.

    When adding or modifying this component, add and update the corresponding LocalTransform component.

    Fields

    Name Description
    Value

    The parent entity.

    See Also

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