1.1 KiB
Enabling Collision
Attach a Collider 2D component to your Sprite Shape to enable the Collider properties in the Sprite Shape Controller. Only the Edge and Polygon Collider 2D components can be used with Sprite Shapes.
The Collider mesh automatically updates itself to the shape of the Sprite Shape when attached. See the Collider section of the Sprite Shape Controller page for more details about the Sprite Shape Collider options.
By default, the Collider mesh is automatically reshaped to match the Sprite Shape every time it is edited. To make manual edits to the Collider mesh directly, first disable both Update Collider and Optimize Collider in the Sprite Shape Controller's Collider settings to prevent the Controller from updating the Collider mesh automatically and overriding your manual edits.
You can now edit the Collider mesh independent of the shape of the Sprite Shape.