Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Collision detection for tiles

Enable collision detection on a tilemap so that GameObjects with a Collider 2D component collide with the tiles.
Read time 1 minuteLast updated 13 days ago

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