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: solution.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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023