docs.unity3d.com
    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
    Terms of use
    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