文档

Unity Engine

Unity Engine

shapeCount

The number of active PhysicsShape2D the Collider2D is currently using.
阅读时间1 分钟最后更新于 1 天前

Definition

public int shapeCount { get; }

Remarks

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