Version: 2019.2
Tile
TileAnimationData

TileData

public __Sprite__A 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. [More info](Sprites.html)<span class="tooltipGlossaryLink">See in [Glossary](Glossary.html#Sprite)</span> 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__The fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject's functionality is defined by the Components attached to it. [More info](class-GameObject.html)<span class="tooltipGlossaryLink">See in [Glossary](Glossary.html#GameObject)</span> gameobject

This is the GameObject that is instanced when the Tile is added to the TilemapA GameObject that allows you to quickly create 2D levels using tiles and a grid overlay. More info
See in Glossary
.

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 ColliderAn invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh - a rough approximation is often more efficient and indistinguishable in gameplay. More info
See in Glossary
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