文档

Unity Engine

Unity Engine

Collision detection for tiles

Enable collision detection on a tilemap so that GameObjects with a Collider 2D component collide with the tiles.
阅读时间1 分钟最后更新于 1 个月前

Enable collision detection on a tilemap so that GameObjects with a Collider 2D component collide with the tiles.

Topic

Description

Enable collision detection for tilesAdd a Tilemap Collider 2D component to a tilemap, choose which tiles collide, and merge shapes with a Composite Collider 2D component for better performance.
Tilemap Collider 2D component referenceExplore the properties you can use to generate collision shapes for the tiles on a tilemap.

Additional resources