Version: 2017.4
Painting Tilemaps
Scriptable Tiles

Tilemaps and Physics 2D

  • You can add a Tilemap Collider 2D component to the GameObject of a Tilemap to generate a collider based on the Tiles of the Tilemap.

  • A Tilemap Collider 2D component functions like a normal Collider 2D component. You can add Effector 2Ds to modify the behavior of the Tilemap Collider 2D. You can also composite the Tilemap Collider 2D with a Composite Collider 2D.

  • Adding or removing Tiles with Collider Type set to Sprite or Grid adds or removes the Tile’s collider shape from the Tilemap Collider 2D component on the next LateUpdate for the Tilemap Collider 2D. This also happens when the Tilemap Collider 2D is being composited by a Composite Collider 2D.


Painting Tilemaps
Scriptable Tiles
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961