Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 13 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool isTrigger { get; set; }