Sprite Factory

ReadMe
Release Notes
Overview
Using the Editor
Upgrading

Concepts
Sprites
Master Sprites
Sprite Groups
Colliders
Locators
Material Sets
SpriteUpdater
SpriteCamera

Advanced
Working in Multiple Projects

Classes
Runtime Classes

Videos
Overview
Creating Sprites
Sprite Inspector
Frame Events
Collision System
Locator System
Material Sets

Links
Sprite Factory Site
Web Documentation
Support
Contact

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.