文档

Unity Engine

Unity Engine

TilemapChangeReason

Options for the reasons why a Tilemap itself has changed.
阅读时间1 分钟最后更新于 1 个月前

Definition

[Flags]public enum TilemapChangeReason

Remarks

These reasons affect every cell, and are reported by Tilemap.tilemapChanged. For changes to individual tiles, see TileChangeReason. A batch of changes is reported with the reasons of every change in it combined.

Fields

Value

Description

DimensionsThe origin or size of the Tilemap changed.
EditorPreviewThe change was made to the editor preview of the rather than to the Tilemap itself.
EverythingAll map-wide changes.
GeometryThe geometry of the Tilemap changed, including changes to its Grid.
PropertyA property of the Tilemap, such as its tile anchor, orientation or color, changed.