SpriteFactory.ColliderInfo
Namespace: SpriteFactory
A class used to wrap Collider and Collider2D.
Properties |
||||
| Name | Type | Description | ||
| is2D | bool | True = this is a Collider2D. False = this is a Collider. (Read-only) | ||
| type | ColliderType | The specific type of this collider. (Box, Capsule, Box2D, etc.) | ||
| colliderComponent | Component | The Collider or Collider2D component. Cast this to the proper type by checking is2D. (Read-only) | ||
| collider3D | Collider | The 3D Collider. Returns null if this is a Collider2D. (Read-only) | ||
| enabled | bool | Sets the enabled state on the collider. |
Functions |
||
| Name | Description | |
| GetCollider | Get the collider cast to a specific type. |