docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Parent

    This component specifies the parent entity in a transform hierarchy.

    Implements
    IComponentData
    IQueryTypeParameter
    Namespace: Unity.Transforms
    Assembly: Unity.Transforms.dll
    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
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)