Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Combine Colliders with the Composite Collider 2D

Combine multiple Collider 2D into a single collider with the Composite Collider 2D.
Read time 1 minuteLast updated 24 days ago

All the supported Collider components have the Composite Operation property, which allows them be composed into a single Collider with the Composite Collider 2D. These Colliders must also be attached to the same Rigidbody 2D as the Composite Collider 2D. When you select a Composite Operation, other properties disappear from that Collider, as they are now controlled by the Composite Collider 2D.
Refer to the CompositeCollider2D API documentation for more information about scripting with the Composite Collider 2D.