Scripting API

Effector2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from Behaviour

3 of 3 of Unity's membersUnity's documentation
In Tassix

Base class for 2D effectors: they act on the colliders of their GameObject that have usedByEffector set.

Properties 2

int colliderMask { get; set; }
bool useColliderMask { get; set; }

Whether only colliders on colliderMask's layers are affected.