isTrigger
Get/Set if the shape is a trigger. Changing the state here is relatively expensive and should be avoided. See _isTrigger.
Read time 1 minuteLast updated 17 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool isTrigger { get; set; }
Remarks
A trigger shape doesn't collide with other shapes. Other shapes pass through it instead, and Unity reports the overlap to an PhysicsCallbacks.ITriggerCallback when _triggerEvents is .
true