Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


usedByEffector

Whether the collider is used by an attached effector or not.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool usedByEffector { get; set; }

Remarks

When checked, the Collider2D continues to work as a collision or trigger area however it will also be used by any Effector2D on the same GameObject.