# Tilemap

> The Tilemap stores Sprite s in a layout marked by a Grid component.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Tilemaps](/engine/6000.0/script-reference/unityengine/tilemaps.md)
* **Assembly:** UnityEngine.TilemapModule
* **Inherits from:** [GridLayout](/engine/6000.0/script-reference/unityengine/gridlayout.md)

```csharp
[RequireComponent(typeof(Transform))]
public sealed class Tilemap : GridLayout
```

## Properties

| Property                                                                                                   | Description                                                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [animationFrameRate](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/animationframerate.md)   | The frame rate for all Tile animations in the Tilemap.                                                                                                                |
| [cellBounds](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/cellbounds.md)                   | Returns the boundaries of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in cell size.                                                |
| [color](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/color.md)                             | The color of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) layer.                                                                    |
| [editorPreviewOrigin](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/editorprevieworigin.md) | The origin of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in cell position inclusive of editor preview Tiles.                      |
| [editorPreviewSize](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/editorpreviewsize.md)     | The size of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in cells inclusive of editor preview Tiles.                                |
| [layoutGrid](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/layoutgrid.md)                   | Gets the [Grid](/engine/6000.0/script-reference/unityengine/grid.md) associated with this [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). |
| [localBounds](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/localbounds.md)                 | Returns the boundaries of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in local space size.                                         |
| [orientation](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/orientation-1.md)               | Orientation of the Tiles in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                           |
| [orientationMatrix](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/orientationmatrix.md)     | Orientation Matrix of the orientation of the Tiles in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                 |
| [origin](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/origin.md)                           | The origin of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in cell position.                                                        |
| [size](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/size.md)                               | The size of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) in cells.                                                                  |
| [tileAnchor](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/tileanchor.md)                   | Gets the anchor point of Tiles in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                     |

## Methods

| Method                                                                                                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddTileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/addtileanimationflags.md)                     | Adds the [TileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileanimationflags.md) onto the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                     |
| [AddTileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/addtileflags.md)                                       | Adds the [TileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileflags.md) onto the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                                       |
| [BoxFill](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/boxfill.md)                                                 | Does a box fill with the given [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) on the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). Starts from given coordinates and fills the limits from start to end (inclusive).                                                                                                                                                                                                                           |
| [ClearAllEditorPreviewTiles](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/clearalleditorpreviewtiles.md)           | Clears all editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s that are placed in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                                 |
| [ClearAllTiles](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/clearalltiles.md)                                     | Clears all [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s that are placed in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                                                |
| [CompressBounds](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/compressbounds.md)                                   | Compresses the [Tilemap.origin](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/origin.md) and [Tilemap.size](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/size.md) of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) to bounds where [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s exist.                                                                                                                    |
| [ContainsTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/containstile.md)                                       | Returns true if the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) contains the given [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md). Returns false if not.                                                                                                                                                                                                                                                                                      |
| [DeleteCells](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/deletecells.md)                                         | Removes cells from within the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md)'s bounds.                                                                                                                                                                                                                                                                                                                                                                            |
| [EditorPreviewBoxFill](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/editorpreviewboxfill.md)                       | Does an editor preview of a box fill with the given [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) on the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). Starts from given coordinates and fills the limits from start to end (inclusive).                                                                                                                                                                                                      |
| [EditorPreviewFloodFill](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/editorpreviewfloodfill.md)                   | Does an editor preview of a flood fill with the given [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) to place. on the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) starting from the given coordinates.                                                                                                                                                                                                                                        |
| [FloodFill](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/floodfill.md)                                             | Does a flood fill with the given [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) to place. on the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) starting from the given coordinates.                                                                                                                                                                                                                                                             |
| [GetAnimationFrame](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getanimationframe.md)                             | Retrieves the current animation frame for a Tile at the given position.                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [GetAnimationFrameCount](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getanimationframecount.md)                   | Retrieves the number of animation frames for a Tile at the given position.                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [GetAnimationTime](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getanimationtime.md)                               | Retrieves the current running animation time for a Tile at the given position.                                                                                                                                                                                                                                                                                                                                                                                                                |
| [GetCellCenterLocal](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getcellcenterlocal.md)                           | Gets the logical center coordinate of a [Grid](/engine/6000.0/script-reference/unityengine/grid.md) cell in local space. The logical center for a cell of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) is defined by the Tile Anchor of the Tilemap.                                                                                                                                                                                                        |
| [GetCellCenterWorld](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getcellcenterworld.md)                           | Gets the logical center coordinate of a [Grid](/engine/6000.0/script-reference/unityengine/grid.md) cell in world space. The logical center for a cell of the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) is defined by the Tile Anchor of the Tilemap.                                                                                                                                                                                                        |
| [GetColliderType](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getcollidertype.md)                                 | Gets the Collider type of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                            |
| [GetColor](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getcolor.md)                                               | Gets the Color of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                    |
| [GetEditorPreviewColor](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/geteditorpreviewcolor.md)                     | Gets the Color of an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the  [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                   |
| [GetEditorPreviewSprite](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/geteditorpreviewsprite.md)                   | Gets the Sprite used in an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                              |
| [GetEditorPreviewTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/geteditorpreviewtile.md)                       | Gets the editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                             |
| [GetEditorPreviewTileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/geteditorpreviewtileflags.md)             | Gets the [TileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileflags.md) of the editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                          |
| [GetEditorPreviewTransformMatrix](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/geteditorpreviewtransformmatrix.md) | Gets the transform matrix of an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                         |
| [GetInstantiatedObject](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getinstantiatedobject.md)                     | Gets the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) instantiated by a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                     |
| [GetObjectToInstantiate](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getobjecttoinstantiate.md)                   | Gets the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) which will be instantiated by a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                       |
| [GetSprite](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getsprite.md)                                             | Gets the [Sprite](/engine/6000.0/script-reference/unityengine/sprite.md) used in a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the Tilemap.                                                                                                                                                                                                                                                                                        |
| [GetTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettile.md)                                                 | Gets the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given XYZ coordinates of a cell in the Tilemap.                                                                                                                                                                                                                                                                                                                                                               |
| [GetTileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettileanimationflags.md)                     | Gets the [TileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileanimationflags.md) of the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                       |
| [GetTileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettileflags.md)                                       | Gets the [TileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileflags.md) of the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                                         |
| [GetTilesBlock](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettilesblock.md)                                     | Retrieves an array of Tiles with the given bounds.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [GetTilesBlockNonAlloc](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettilesblocknonalloc.md)                     | Retrieves an array of Tiles with the given bounds.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [GetTilesRangeCount](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettilesrangecount.md)                           | Retrieves the number of Tiles within the given range, inclusive of the Cells at both the starting position and the ending positions. This method begins at the given starting position and iterates through all available Z Positions, then iterates through the X and Y positions until it reaches the ending position.                                                                                                                                                                      |
| [GetTilesRangeNonAlloc](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettilesrangenonalloc.md)                     | Retrieves an array of Tiles within the given range, inclusive of the Cells at both the starting position and the ending positions. This method begins at the given starting position and iterates through all available Z Positions, then iterates through the X and Y positions until it reaches the ending position.                                                                                                                                                                        |
| [GetTransformMatrix](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/gettransformmatrix.md)                           | Gets the transform matrix of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                         |
| [GetUsedSpritesCount](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getusedspritescount.md)                         | Gets the total number of different [Sprite](/engine/6000.0/script-reference/unityengine/sprite.md)s used in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                                   |
| [GetUsedSpritesNonAlloc](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getusedspritesnonalloc.md)                   | Fills the given array with the total number of different [Sprite](/engine/6000.0/script-reference/unityengine/sprite.md)s used in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) and returns the number of Sprites filled.                                                                                                                                                                                                                                    |
| [GetUsedTilesCount](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getusedtilescount.md)                             | Gets the total number of different [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s used in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                                   |
| [GetUsedTilesNonAlloc](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/getusedtilesnonalloc.md)                       | Fills the given array with the total number of different [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s used in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) and returns the number of [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s filled.                                                                                                                                                                           |
| [HasEditorPreviewTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/haseditorpreviewtile.md)                       | Returns whether there is an editor preview Tile at the position.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [HasTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/hastile.md)                                                 | Returns whether there is a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the position.                                                                                                                                                                                                                                                                                                                                                                                   |
| [InsertCells](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/insertcells.md)                                         | Inserts cells into the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                                                                                                                            |
| [RefreshAllTiles](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/refreshalltiles.md)                                 | Refreshes all [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). The Tilemap will retrieve the rendering data, animation data and other data for all tiles and update all relevant components.                                                                                                                                                                                               |
| [RefreshTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/refreshtile.md)                                         | Refreshes a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                         |
| [RemoveTileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/removetileanimationflags.md)               | Removes the [TileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileanimationflags.md) from the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                  |
| [RemoveTileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/removetileflags.md)                                 | Removes the [TileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileflags.md) from the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                                    |
| [ResizeBounds](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/resizebounds.md)                                       | Resizes Tiles in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md) to bounds defined by [Tilemap.origin](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/origin.md) and [Tilemap.size](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/size.md).                                                                                                                                                                                       |
| [SetAnimationFrame](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/setanimationframe.md)                             | Sets the current animation frame for a Tile at the given position.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [SetAnimationTime](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/setanimationtime.md)                               | Sets the running animation time for a Tile at the given position.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [SetColliderType](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/setcollidertype.md)                                 | Sets the Collider type of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                            |
| [SetColor](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/setcolor.md)                                               | Sets the color of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                    |
| [SetEditorPreviewColor](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/seteditorpreviewcolor.md)                     | Sets the color of an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                    |
| [SetEditorPreviewTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/seteditorpreviewtile.md)                       | Sets an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                                 |
| [SetEditorPreviewTransformMatrix](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/seteditorpreviewtransformmatrix.md) | Sets the transform matrix of an editor preview [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                         |
| [SetTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settile.md)                                                 | Sets a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) with additional properties at the given XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                   |
| [SetTileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settileanimationflags.md)                     | Sets the [TileAnimationFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileanimationflags.md) onto the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                     |
| [SetTileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settileflags.md)                                       | Sets the [TileFlags](/engine/6000.0/script-reference/unityengine/tilemaps/tileflags.md) onto the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) at the given position.                                                                                                                                                                                                                                                                                                       |
| [SetTiles](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settiles.md)                                               | Sets an array of [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s with additonal properties at the given XYZ coordinates of the corresponding cells in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). The Color and Transform of the [TileChangeData](/engine/6000.0/script-reference/unityengine/tilemaps/tilechangedata.md) will take precedence over the values from the [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md). |
| [SetTilesBlock](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settilesblock.md)                                     | Fills bounds with array of [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s.                                                                                                                                                                                                                                                                                                                                                                                                  |
| [SetTransformMatrix](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/settransformmatrix.md)                           | Sets the transform matrix of a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) given the XYZ coordinates of a cell in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md).                                                                                                                                                                                                                                                                         |
| [SwapTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/swaptile.md)                                               | Swaps all existing [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s of **changeTile** to **newTile** and refreshes all the swapped [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s.                                                                                                                                                                                                                                                                          |

## Static Events

| Member                                                                                                                 | Description                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [loopEndedForTileAnimation](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/loopendedfortileanimation.md) | Callback when Tiles on a Tilemap have reached the end of their loop for their Tile Animation. |
| [tilemapPositionsChanged](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/tilemappositionschanged.md)     | Callback when Tiles on a Tilemap have changed.                                                |
| [tilemapTileChanged](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/tilemaptilechanged.md)               | Callback when Tiles on a Tilemap have changed.                                                |

## Structs

| Struct                                                                                       | Description                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Tilemap.SyncTile](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/synctile.md) | A Struct for containing changes to a [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md) when it has been changed on a [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). |

## Enums

| Enum                                                                                               | Description                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Tilemap.Orientation](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap/orientation.md) | Determines the orientation of [Tile](/engine/6000.0/script-reference/unityengine/wsa/tile.md)s in the [Tilemap](/engine/6000.0/script-reference/unityengine/tilemaps/tilemap.md). |

## Inheritance

**Inherited Members:**

* [GridLayout.GetBoundsLocal(Vector3Int)](/engine/6000.0/script-reference/unityengine/gridlayout/getboundslocal.md#getboundslocal\(vector3int\))
* [GridLayout.GetBoundsLocal(Vector3, Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/getboundslocal.md#getboundslocal\(vector3-vector3\))
* [GridLayout.CellToLocal(Vector3Int)](/engine/6000.0/script-reference/unityengine/gridlayout/celltolocal.md)
* [GridLayout.LocalToCell(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/localtocell.md)
* [GridLayout.CellToLocalInterpolated(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/celltolocalinterpolated.md)
* [GridLayout.LocalToCellInterpolated(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/localtocellinterpolated.md)
* [GridLayout.CellToWorld(Vector3Int)](/engine/6000.0/script-reference/unityengine/gridlayout/celltoworld.md)
* [GridLayout.WorldToCell(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/worldtocell.md)
* [GridLayout.LocalToWorld(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/localtoworld.md)
* [GridLayout.WorldToLocal(Vector3)](/engine/6000.0/script-reference/unityengine/gridlayout/worldtolocal.md)
* [GridLayout.GetLayoutCellCenter()](/engine/6000.0/script-reference/unityengine/gridlayout/getlayoutcellcenter.md)
* [GridLayout.cellSize](/engine/6000.0/script-reference/unityengine/gridlayout/cellsize.md)
* [GridLayout.cellGap](/engine/6000.0/script-reference/unityengine/gridlayout/cellgap.md)
* [GridLayout.cellLayout](/engine/6000.0/script-reference/unityengine/gridlayout/celllayout-1.md)
* [GridLayout.cellSwizzle](/engine/6000.0/script-reference/unityengine/gridlayout/cellswizzle-1.md)
* [Behaviour.enabled](/engine/6000.0/script-reference/unityengine/behaviour/enabled.md)
* [Behaviour.isActiveAndEnabled](/engine/6000.0/script-reference/unityengine/behaviour/isactiveandenabled.md)
* [Component.GetComponent(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponent.md#getcomponent\(type\))
* [Component.GetComponent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponent.md)
* [Component.TryGetComponent(Type, Component)](/engine/6000.0/script-reference/unityengine/component/trygetcomponent.md)
* [Component.TryGetComponent\<T>(T)](/engine/6000.0/script-reference/unityengine/component/trygetcomponent.md)
* [Component.GetComponent(string)](/engine/6000.0/script-reference/unityengine/component/getcomponent.md#getcomponent\(string\))
* [Component.GetComponentInChildren(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md#getcomponentinchildren\(type-bool\))
* [Component.GetComponentInChildren(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md#getcomponentinchildren\(type\))
* [Component.GetComponentInChildren\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinchildren.md)
* [Component.GetComponentsInChildren(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentsInChildren\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md#getcomponentsinchildrent\(bool\))
* [Component.GetComponentsInChildren\<T>(bool, List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentsInChildren\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md#getcomponentsinchildrent\(\))
* [Component.GetComponentsInChildren\<T>(List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinchildren.md)
* [Component.GetComponentInParent(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparent\(type-bool\))
* [Component.GetComponentInParent(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparent\(type\))
* [Component.GetComponentInParent\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparentt\(bool\))
* [Component.GetComponentInParent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentinparent.md#getcomponentinparentt\(\))
* [Component.GetComponentsInParent(Type, bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md)
* [Component.GetComponentsInParent\<T>(bool)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md#getcomponentsinparentt\(bool\))
* [Component.GetComponentsInParent\<T>(bool, List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md)
* [Component.GetComponentsInParent\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponentsinparent.md#getcomponentsinparentt\(\))
* [Component.GetComponents(Type)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponents\(type\))
* [Component.GetComponents(Type, List\<Component>)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponents\(type-listcomponent\))
* [Component.GetComponents\<T>(List\<T>)](/engine/6000.0/script-reference/unityengine/component/getcomponents.md)
* [Component.GetComponents\<T>()](/engine/6000.0/script-reference/unityengine/component/getcomponents.md#getcomponentst\(\))
* [Component.GetComponentIndex()](/engine/6000.0/script-reference/unityengine/component/getcomponentindex.md)
* [Component.CompareTag(string)](/engine/6000.0/script-reference/unityengine/component/comparetag.md#comparetag\(string\))
* [Component.CompareTag(TagHandle)](/engine/6000.0/script-reference/unityengine/component/comparetag.md#comparetag\(taghandle\))
* [Component.SendMessageUpwards(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessageupwards.md#sendmessageupwards\(string-object-sendmessageoptions\))
* [Component.SendMessageUpwards(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessageupwards.md#sendmessageupwards\(string-sendmessageoptions\))
* [Component.SendMessage(string, Object)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-object\))
* [Component.SendMessage(string)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string\))
* [Component.SendMessage(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-object-sendmessageoptions\))
* [Component.SendMessage(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/sendmessage.md#sendmessage\(string-sendmessageoptions\))
* [Component.BroadcastMessage(string, Object, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/broadcastmessage.md#broadcastmessage\(string-object-sendmessageoptions\))
* [Component.BroadcastMessage(string, SendMessageOptions)](/engine/6000.0/script-reference/unityengine/component/broadcastmessage.md#broadcastmessage\(string-sendmessageoptions\))
* [Component.transform](/engine/6000.0/script-reference/unityengine/component/transform.md)
* [Component.gameObject](/engine/6000.0/script-reference/unityengine/component/gameobject.md)
* [Component.tag](/engine/6000.0/script-reference/unityengine/component/tag.md)
* [Object.GetInstanceID()](/engine/6000.0/script-reference/unityengine/object/getinstanceid.md)
* [Object.GetHashCode()](/engine/6000.0/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.0/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.0/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectssortmode\))
* [Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive-findobjectssortmode\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.0/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindObjectsByType\<T>(FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectssortmode\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive-findobjectssortmode\))
* [Object.FindFirstObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindFirstObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindFirstObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindFirstObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type-findobjectsinactive\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.0/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.0/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.0/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.0/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.0/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.0/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
