isTrigger
Whether the shape is a trigger.
읽는 시간 1분최근 업데이트: 2일 전
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool isTrigger { get; set; }
Remarks
A trigger shape doesn't collide with other shapes. Other shapes pass through it instead, and Unity reports the overlap to an PhysicsCallbacks.ITriggerCallback when PhysicsShape.triggerEvents is . Changing the state here is relatively expensive and should be avoided. See PhysicsShapeDefinition.isTrigger.
true