Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


contactEvents

Controls whether this shape produces contact events which can be retrieved after the simulation has completed. This only applies to kinematic and dynamic bodies. A contact event is produced if either shapes involved have their contactEvents enabled. Changing this at run-time may lead to lost begin/end events.
Read time 1 minuteLast updated 10 days ago

Definition

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