# cachedEntityId

> The cached EntityId of the TileBase.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.6/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

```csharp
public EntityId cachedEntityId { get; }
```

### Examples

```csharp
using UnityEngine;
using UnityEngine.Tilemaps;

public static class TilemapExample
{
    public static void TileCachedEntityIdExample(TileBase tile)
    {
        Debug.Log($"The cached EntityId for the Tile is equal to GetEntityId: ({(tile.cachedEntityId == tile.GetEntityId()).ToString()})");
    }
}
```
