Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TileChangeReason

Options for the reasons why tiles of a Tilemap have changed.
Read time 1 minuteLast updated 7 days ago

Definition

[Flags]public enum TileChangeReason

Remarks

These reasons are reported by Tilemap.tilemapTilesChanged. For changes to the Tilemap itself, see TilemapChangeReason. A batch of changes is reported with the reasons of every change in it combined, so a reason cannot be traced back to the individual tile that caused it.

Fields

Value

Description

ColliderTypeThe Tile.ColliderType of a Tile changed.
ColorThe color of a Tile changed.
FlagsThe TileFlags of a Tile changed.
PhysicsThe changes which require colliders to be rebuilt for physics.
ReplacedA Tile was set, cleared or refreshed, so any of its properties may have changed.
SpriteAnimationThe animation of a Tile changed.
TransformThe transform matrix of a Tile changed.