ITilemap

class in UnityEngine.Tilemaps

Switch to Manual

Description

Class passed onto Tiles when information is queried from the Tiles.

This handles editor preview tiles when painting on a Tilemap in Editor mode.

Variables

cellBoundsReturns the boundaries of the Tilemap in cell size.
localBoundsReturns the boundaries of the Tilemap in local space size.
originThe origin of the Tilemap in cell position.
sizeThe size of the Tilemap in cells.

Public Functions

GetColorGets the color of a Tile given the XYZ coordinates of a cell in the Tilemap.
GetComponent如果瓦片地图的 GameObject 附加了一个类型 T 的组件,则将其返回,否则返回 null。
GetSpriteGets the Sprite used in a Tile given the XYZ coordinates of a cell in the Tilemap.
GetTileGets the Tile at the given XYZ coordinates of a cell in the|Tilemap.
GetTileFlagsGets the Tile Flags of the Tile at the given position.
GetTransformMatrixGets the transform matrix of a Tile given the XYZ coordinates of a cell in the Tilemap.
RefreshTileRefreshes a Tile at the given XYZ coordinates of a cell in the :Tilemap.