# GetName

> Gets the name assigned to an entity.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## GetName(Entity)

Gets the name assigned to an entity.

```csharp
[ExcludeFromBurstCompatTesting("Returns managed string")]
public string GetName(Entity entity)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The Entity object of the entity of interest.

### Returns

| Type                                                           | Description                           |
| -------------------------------------------------------------- | ------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.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.

```csharp
public void GetName(Entity entity, out FixedString64Bytes name)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The Entity object of the entity of interest.**** (\[FixedString64Bytes]\(/engine/7000.0/script-reference/unity/collections/fixedstring64bytes)): The entity's name will be stored here.

### Remarks

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