Version: 2020.1
Tile
TileAnimationData

TileData

public Sprite sprite

This is the sprite that is rendered for the Tile.

public Color color

This is the color that tints the sprite used for the Tile.

public Matrix4x4 transform

This is the transform matrix used to determine the final location of the Tile. Modify this to add rotations or scaling to the tile.

public GameObject gameobject

This is the GameObject that is instanced when the Tile is added to the Tilemap.

public TileFlags flags

These are the flags which controls the Tile’s behaviour. See TileFlags above for more details.

public Tile.ColliderType colliderType

This controls the collider shape generated by the Tile for an attached Tilemap Collider 2D component. See documentation on Tile.ColliderType for more details.


  • 2017–09–06 Page published
Tile
TileAnimationData
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961