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.IgnoreCollisions

C#: void IgnoreCollisions (Collider collider)
JS: function IgnoreCollisions (collider : Collider) : void

Description
Ignore collisions with all generated colliders.

This function uses Physics.IgnoreCollisions to ignore collisions between the incoming collider and all generated colliders in Sprite. You can also use collision layers to manage collision detection exclusion.


C#: void IgnoreCollisions<TCollider> (TCollider collider)
JS: function IgnoreCollisions.<TCollider> (collider : TCollider) : void

Description
Ignore collisions with all generated colliders.

This is a generic version that supports ignoring 3D or 2D colliders. TCollider must be a collider of type Collider or Collider2D.

This function uses Physics.IgnoreCollisions or Physics2D.IgnoreCollisions to ignore collisions between the incoming collider and all generated colliders in Sprite. You can also use collision layers to manage collision detection exclusion.

Note: Ignoring collisions between 2D colliders requires Unity 4.5+.