docs.unity3d.com
    Show / Hide Table of Contents

    Method SetName

    SetName(Entity, String)

    Sets the name of an entity, truncating the name if needed

    Declaration
    [NotBurstCompatible]
    public void SetName(Entity entity, string name)
    Parameters
    Type Name Description
    Entity entity

    The Entity object of the entity to name.

    String name

    The name to assign.The maximum length of an EntityName is 61 characters. if a string longer than 61 characters is used a, the name will be truncated.

    Remarks

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

    SetName(Entity, FixedString64Bytes)

    Declaration
    [BurstCompatible]
    public void SetName(Entity entity, 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