Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Tile

Class for a default tile in the Tilemap.
Read time 4 minutesLast updated 2 days ago

Definition

[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

colorColor of the Tile.
flagsTileFlags of the Tile.
gameObjectGameObject of the Tile.
spriteSprite to be rendered at the Tile.
transformTransform matrix of the Tile.

Methods

Method

Description

GetTileDataRetrieves the tile rendering data for the Tile.

Enums

Enum

Description

Tile.ColliderTypeEnum for determining what collider shape is generated for this Tile by the TilemapCollider2D.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.