ITilemap 瓦片地图信息

class in UnityEngine.Tilemaps

/

Implemented in:UnityEngine.TilemapModule

UnityEngine.Tilemaps中的类

/

基础自:UnityEngine.TilemapModule

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.

从Tiles查询信息时,将类传递给Tiles

在“编辑器”模式下在Tilemap上进行绘制时,此功能可处理编辑器预览tiles

Properties 属性

单元格边界 cellBounds 返回单元格大小中TileMap的边界 Returns the boundaries of the Tilemap in cell size.
局部边界 localBounds 以本地空间大小返回Tilemap的边界 Returns the boundaries of the Tilemap in local space size.
原点 origin Tilemap在单元格位置的原点 The origin of the Tilemap in cell position.
大小 size Tilemap的大小(以单元格为单位) The size of the Tilemap in cells.

Public Methods 公共方法

获取颜色 GetColor 给定TileMap中单元格的XYZ坐标,获取Tile的颜色 Gets the color of a Tile given the XYZ coordinates of a cell in the Tilemap.
获取组件 GetComponent 如果贴图的GameObject附加了一个,则返回类型T的组件;如果没有,则返回null Returns the component of type T if the GameObject of the tile map has one attached, null if it doesn't.
获取脚本 GetSprite 给定TileMap中单元格的XYZ坐标,获取在Tile中使用的Sprite Gets the Sprite used in a Tile given the XYZ coordinates of a cell in the Tilemap.
获取瓦片 GetTile 在Tilemap中的单元格的给定XYZ坐标处获取Tile Gets the Tile at the given XYZ coordinates of a cell in the|Tilemap.
获取瓦片标志 GetTileFlags 获取给定位置的Tile的Tile Flags Gets the Tile Flags of the Tile at the given position.
获取变换矩阵 GetTransformMatrix 给定TileMap中单元格的XYZ坐标,获取Tile的变换矩阵 Gets the transform matrix of a Tile given the XYZ coordinates of a cell in the Tilemap.
刷新瓦片 RefreshTile 在Tilemap中的单元格的给定XYZ坐标处刷新Tile. Refreshes a Tile at the given XYZ coordinates of a cell in the :Tilemap.