GetPhysicsShapeCount()
The number of physics shapes for the Sprite.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public int GetPhysicsShapeCount()
Returns
Type | Description |
|---|---|
| int | The number of physics shapes for the Sprite. |
Remarks
A physics shape is a cyclic sequence of line segments between points that define the outline of the Sprite used for physics. Since the Sprite can have holes and discontinuous parts, its outline is not necessarily defined by a single physics shape.