기술 자료

Unity Engine

Unity Engine

isTrigger

Whether the shape is a trigger, which generates overlap events but never generates a collision response.
읽는 시간 1분최근 업데이트: 하루 전

Definition

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

Remarks

A trigger only detects other shapes while its triggerEvents is enabled. Triggers do not collide with other triggers and do not have continuous collision, instead, use a ray or shape cast for those scenarios. Triggers still contribute to the body mass if they have non-zero density.