Version: 2021.2
public int shapeCount ;

描述

The number of active PhysicsShape2D the Collider2D is currently using.

If the Collider2D is disabled, inactive or in error then this count will be zero.