Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Collider2D.shapeCount

public int shapeCount;

Description

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.