docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetName

    GetName(Entity)

    Gets the name assigned to an entity.

    Declaration
    [ExcludeFromBurstCompatTesting("Returns managed string")]
    public string GetName(Entity entity)
    Parameters
    Type Name Description
    Entity entity

    The Entity object of the entity of interest.

    Returns
    Type Description
    string

    The entity name, as a managed string.

    Remarks

    For performance, entity names only exist when running in the Unity Editor.

    GetName(Entity, out FixedString64Bytes)

    Gets the name assigned to an entity.

    Declaration
    public void GetName(Entity entity, out FixedString64Bytes name)
    Parameters
    Type Name Description
    Entity entity

    The Entity object of the entity of interest.

    FixedString64Bytes name

    The entity's name will be stored here.

    Remarks

    For performance, entity names only exist when running in the Unity Editor.

    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)