TileChangeReason
Options for the reasons why tiles of a Tilemap have changed.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
[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 |
|---|---|
| ColliderType | The Tile.ColliderType of a Tile changed. |
| Color | The color of a Tile changed. |
| Flags | The TileFlags of a Tile changed. |
| Physics | The changes which require colliders to be rebuilt for physics. |
| Replaced | A Tile was set, cleared or refreshed, so any of its properties may have changed. |
| SpriteAnimation | The animation of a Tile changed. |
| Transform | The transform matrix of a Tile changed. |