ドキュメント

Unity Engine

Unity Engine

shapeCount

The number of active PhysicsShape2D the Collider2D is currently using.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public int shapeCount { get; }

Remarks

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