docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetEntity

    GetEntity()

    Returns the primary Entity

    Declaration
    [Obsolete("Use the version of the function with the explicit TransformUsageFlag parameter (RemovedAfter Entities 1.0)")]
    public Entity GetEntity()
    Returns
    Type Description
    Entity

    The requested Entity

    Remarks

    Implicitly it access the entity with TransformUsageFlags.Dynamic as TransformUsageFlags.

    GetEntity(GameObject)

    Returns the Entity associated with a GameObject

    Declaration
    [Obsolete("Use the version of the function with the explicit TransformUsageFlag parameter (RemovedAfter Entities 1.0)")]
    public Entity GetEntity(GameObject authoring)
    Parameters
    Type Name Description
    GameObject authoring

    The GameObject whose Entity is requested

    Returns
    Type Description
    Entity

    The requested Entity if found, null otherwise

    Remarks

    Implicitly it access the entity with TransformUsageFlags.Dynamic as TransformUsageFlags.

    GetEntity(Component)

    Returns the Entity associated with an Object

    Declaration
    [Obsolete("Use the version of the function with the explicit TransformUsageFlag parameter (RemovedAfter Entities 1.0)")]
    public Entity GetEntity(Component authoring)
    Parameters
    Type Name Description
    Component authoring

    The Object whose Entity is requested

    Returns
    Type Description
    Entity

    The requested Entity if found, null otherwise

    Remarks

    Implicitly it access the entity with TransformUsageFlags.Dynamic as TransformUsageFlags.

    GetEntity(TransformUsageFlags)

    Returns the primary Entity

    Declaration
    public Entity GetEntity(TransformUsageFlags flags)
    Parameters
    Type Name Description
    TransformUsageFlags flags

    The flags to add to this Entity

    Returns
    Type Description
    Entity

    The requested Entity

    GetEntity(GameObject, TransformUsageFlags)

    Returns the Entity associated with a GameObject

    Declaration
    public Entity GetEntity(GameObject authoring, TransformUsageFlags flags)
    Parameters
    Type Name Description
    GameObject authoring

    The GameObject whose Entity is requested

    TransformUsageFlags flags

    The flags to add to this Entity

    Returns
    Type Description
    Entity

    The requested Entity if found, null otherwise

    GetEntity(Component, TransformUsageFlags)

    Returns the Entity associated with an Object

    Declaration
    public Entity GetEntity(Component authoring, TransformUsageFlags flags)
    Parameters
    Type Name Description
    Component authoring

    The Object whose Entity is requested

    TransformUsageFlags flags

    The flags to add to this Entity

    Returns
    Type Description
    Entity

    The requested Entity if found, null otherwise

    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)