기술 자료

Unity Engine

Unity Engine

triggerEvents

Controls whether this shape produces triggers events which can be retrieved after the simulation has completed. A trigger event is only produced if both shapes involved have their triggerEvents enabled. A trigger event will produce a PhysicsCallbacks.ITriggerCallback to the PhysicsShape.callbackTarget for both shapes involved.
읽는 시간 1분최근 업데이트: 25일 전

Definition

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