GetName
Gets the name assigned to an entity.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetName(Entity)
Gets the name assigned to an entity.
[ExcludeFromBurstCompatTesting("Returns managed string")]public string GetName(Entity entity)
Parameters
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, FixedString64Bytes)
Gets the name assigned to an entity.
public void GetName(Entity entity, out FixedString64Bytes name)
Parameters
The Entity object of the entity of interest.
The entity's name will be stored here.
Remarks
For performance, entity names only exist when running in the Unity Editor.