Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Tile asset Inspector window reference

Explore the properties you can use to configure a tile asset.
Read time 2 minutesLast updated 12 days ago

Explore the properties of a tile asset, which you add to a tilemap to render a sprite at a grid position. For more information, refer to Introduction to tilemaps.

Property

Description

PreviewDisplays a preview of the tile.
SpriteSets the sprite Unity renders. To select a sprite, drag a sprite asset from the Project window, or select the picker (⊙).
Sprite EditorOpens the Sprite Editor window.
ColorTints the sprite with the selected color. Set the color to white to render without a tint.
Collider TypeSets the shape Unity uses to check for collisions with the tile. The options are:
  • None: The tile doesn't collide with anything.
  • Sprite: Unity uses the shape from the Custom Physics Shape tab of the Sprite Editor window.
  • Grid: Unity uses the shape of the tilemap cell.
GameObject to InstantiateSets the prefab Unity adds to the tilemap at the same position as the tile. Drag a prefab from the Project window to this property. You can't drag an existing instance of a GameObject from the Hierarchy window.
FlagsCustomizes the tile. The options are:
  • None: Disables all the options.
  • Everything: Enables all the options.
  • Lock Color: Prevents brushes or other tools changing the Color of the tile.
  • Lock Transform: Prevents brushes or other tools changing the offset position, rotation, or scale of the tile.
  • Instantiate GameObject Runtime Only: Instantiates GameObjects only when you enter Play mode or run your built application.
  • Keep GameObject Runtime Only: In Play mode, keeps a GameObject instantiated if another tile replaces it or the tile is deleted.
  • Lock All: Enables both Lock Color and Lock Transform.
OffsetSets the fixed offset position of the tile. This property is available only if you enable Lock Transform or Lock All in the Flags property.
RotationSets the fixed rotation of the tile. This property is available only if you enable Lock Transform or Lock All in the Flags property.
ScaleSets the fixed scale of the tile. This property is available only if you enable Lock Transform or Lock All in the Flags property.

Additional resources