# GetTileEntityId(Vector3Int)

> Gets the EntityId of the Tile at the given xyz coordinates of a cell in the Tilemap.

## Definition

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

```csharp
public virtual EntityId GetTileEntityId(Vector3Int position)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): The position of the [Tile](/engine/6000.6/script-reference/unityengine/wsa/tile.md) on the [Tilemap](/engine/6000.6/script-reference/unityengine/tilemaps/tilemap.md).

### Returns

| Type                                                                | Description                                                                                                      |
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [EntityId](/engine/6000.6/script-reference/unityengine/entityid.md) | EntityId of the [TileBase](/engine/6000.6/script-reference/unityengine/tilemaps/tilebase.md) placed at the cell. |

### Examples

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

public static class TilemapExample
{
    public static void GetTileEntityIdExample(ITilemap tilemap, Vector3Int position, Tile tile)
    {
        tilemap.GetComponent<Tilemap>().SetTile(position, tile);
        var tileId = tilemap.GetTileEntityId(position);
        Debug.Log($"The ids for the Tile placed are equal ({(tileId == tile.GetEntityId()).ToString()})");
    }
}
```
