SpriteFactory.SpriteCollider.CollisionData
Contains information about the collision.
Properties |
||||
Name | Description | |||
spriteColliderName | string | The name of the Collider Set on this Sprite that collided. (Read-only) | ||
spriteColliderId | int | The id of the Collider Set on this Sprite that collided. (Read-only) | ||
spriteColliderTag | string | The tag of the Collider Set on this Sprite that collided. (Read-only) | ||
spriteColliderGroupName | string | The name of the Collider Group that contains the collider on this Sprite that collided. (Read-only) | ||
objectValue | object | An object containing a collision or collider. Type depends on message sent from SpriteCollider. (Read-only) | ||
collisionType | CollisionType | The type of this collision (Collider, Trigger, etc.). (Read-only) | ||
is2D | bool | True = colliders are 2D. False = colliders are 3D. (Read-only) | ||
otherSprite | Sprite | The other Sprite that collided with this Sprite. (Read-only) | ||
otherColliderGameObject | GameObject | The GameObject of the other collider that collided with this Sprite. (Read-only) |
Functions |
||
Name | Description | |
GetCollider | Get the collider cast to a specific type. |