SetHitEvents(bool)
Enable/disable hit events on all shapes attached to the body. See PhysicsShape.hitEvents.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public void SetHitEvents(bool hitEvents)
Parameters
Whether hit events are allowed on all shapes attached to this body or not.