# 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.7/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule

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

### Parameters

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

### Returns

| Type                                                                | Description                                                                                                          |
| ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [EntityId](/engine/6000.7/script-reference/unityengine/entityid.md) | The EntityId of the [TileBase](/engine/6000.7/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(Tilemap tilemap, Vector3Int position, Tile tile)
    {
        tilemap.SetTile(position, tile);
        var tileId = tilemap.GetTileEntityId(position);
        Debug.Log($"The ids for the Tile placed are equal ({(tileId == tile.GetEntityId()).ToString()})");
    }
}
```
