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.Sprite.GetCollider

C#: ColliderInfo GetCollider (int colliderId)
JS: function GetCollider (colliderId : int) : ColliderInfo

Description
Get a specific collider by index. This function returns a ColliderInfo, which is a wrapper for Collider and Collider2D. This allows you to retrieve either type of collider.

Returns null if passed an invalid index.


C#: ColliderInfo GetCollider (string colliderName)
JS: function GetCollider (colliderName : String) : ColliderInfo

Description
Get a specific collider by name. This function returns a ColliderInfo, which is a wrapper for Collider and Collider2D. This allows you to retrieve either type of collider.

Returns null if passed an invalid name.

See Also
GetColliders