文档

Unity Engine

Unity Engine

TileChangeReason

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

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.