Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TileBase

Base class for a tile in the Tilemap.
Read time 4 minutesLast updated 2 days ago

Definition

public abstract class TileBase : ScriptableObject

Remarks

Inherit from this to implement your custom tile to be placed in a Tilemap component.

Properties

Property

Description

cachedEntityIdThe cached EntityId of the TileBase.

Methods

Method

Description

GetTileAnimationDataRetrieves any tile animation data from the scripted tile.
GetTileDataRetrieves any tile rendering data from the scripted tile.
OnDisableThis function is called when the TileBase goes out of scope. Override this to deinitialize any data for the TileBase.
OnEnableThis function is called when the TileBase is loaded. Override this to initialize any data for the TileBase.
RefreshTileThis method is called when the tile is refreshed.
StartUpStartUp is called on the first frame of the running Scene.

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.