Combine Colliders with the Composite Collider 2D
Combine multiple Collider 2D into a single collider with the Composite Collider 2D.
阅读时间1 分钟最后更新于 2 个月前
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.