Collider
Use the Collider tool to add collision blocks to the map. These rectangular blocks prevent the player from passing through certain areas. You can change their size and orientation.
Tip
2D sprites do not block movement. If you use a 2D sprite for a tree or another piece of scenery, add a collider to prevent the player from walking through it.
Toolbar
When you activate the Collider tool, its toolbar appears. Colliders are visible on the map only while the tool is active.

Select (pointer icon)
Click an existing collider on the map to select it.
Add (+ icon)
Click the map to place a collider.
Edit collider

Resize handles
When you select a collider, two square handles appear. Drag a handle to resize the collider along the X or Z axis.
Rotation (R key)
Press R to rotate the selected collider. This lets you place it at an angle to the grid.