Tile
Class for a default tile in the Tilemap.
Read time 4 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Inherits from: TileBase
[HelpURL("https://docs.unity3d.com/Manual/Tilemap-TileAsset.html")]public class Tile : TileBase
Remarks
This inherits from TileBase and represents a default tile to be placed in a Tilemap. It implements TileBase.GetTileData for simple rendering of a Sprite in the tile map.
Properties
Property | Description |
|---|---|
| color | Color of the Tile. |
| flags | TileFlags of the Tile. |
| gameObject | GameObject of the Tile. |
| sprite | Sprite to be rendered at the Tile. |
| transform | Transform matrix of the Tile. |
Methods
Method | Description |
|---|---|
| GetTileData | Retrieves the tile rendering data for the Tile. |
Enums
Enum | Description |
|---|---|
| Tile.ColliderType | Enum for determining what collider shape is generated for this Tile by the TilemapCollider2D. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |