docs.unity.cn
    Show / Hide Table of Contents

    Method GetName

    GetName(Entity)

    Gets the name assigned to an entity.

    Declaration
    [NotBurstCompatible]
    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.

    Remarks

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

    GetName(Entity, out FixedString64Bytes)

    Declaration
    [BurstCompatible]
    public void GetName(Entity entity, out FixedString64Bytes name)
    Parameters
    Type Name Description
    Entity entity
    FixedString64Bytes name
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use