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