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 |