Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


colliderMask

The mask used to select specific layers allowed to interact with the effector.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public int colliderMask { get; set; }

Remarks

Any Collider2D used by the effector will only interact with colliders on the specified layers. The layer of this GameObject will not be used by these colliders.