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