TileBase
Base class for a tile in the Tilemap.
Read time 4 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Inherits from: ScriptableObject
public abstract class TileBase : ScriptableObject
Remarks
Inherit from this to implement your custom tile to be placed in a Tilemap component.
Properties
Property | Description |
|---|---|
| cachedEntityId | The cached EntityId of the TileBase. |
Methods
Method | Description |
|---|---|
| GetTileAnimationData | Retrieves any tile animation data from the scripted tile. |
| GetTileData | Retrieves any tile rendering data from the scripted tile. |
| OnDisable | This function is called when the TileBase goes out of scope. Override this to deinitialize any data for the TileBase. |
| OnEnable | This function is called when the TileBase is loaded. Override this to initialize any data for the TileBase. |
| RefreshTile | This method is called when the tile is refreshed. |
| StartUp | StartUp is called on the first frame of the running Scene. |
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. |