ITilemap
Class passed onto Tiles when information is queried from the Tiles.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
public class ITilemap
Remarks
This handles editor preview tiles when painting on a Tilemap in Editor mode.
Constructors
Constructor | Description |
|---|---|
| ITilemap(UnityEngine.Tilemaps.Tilemap) | Initializes and returns an instance of ITilemap. |
Properties
Property | Description |
|---|---|
| cellBounds | Returns the boundaries of the Tilemap in cell size. |
| localBounds | Returns the boundaries of the Tilemap in local space size. |
| origin | The origin of the Tilemap in cell position. |
| size | The size of the Tilemap in cells. |
Methods
Method | Description |
|---|---|
| GetColor | Gets the color of a Tile given the XYZ coordinates of a cell in the Tilemap. |
| GetComponent | Returns the component of type |
| GetSprite | Gets the Sprite used in a Tile given the XYZ coordinates of a cell in the Tilemap. |
| GetTile | Gets the Tile at the given XYZ coordinates of a cell in the Tilemap. |
| GetTileEntityId | Gets the EntityId of the Tile at the given xyz coordinates of a cell in the Tilemap. |
| GetTileFlags | Gets the Tile Flags of the Tile at the given position. |
| GetTransformMatrix | Gets the transform matrix of a Tile given the XYZ coordinates of a cell in the Tilemap. |
| RefreshTile | Refreshes a Tile at the given XYZ coordinates of a cell in the :Tilemap. |
| RefreshTiles | Refreshes Tiles at the given xyz coordinates of cells in the Tilemap from the array. |