isTrigger
Whether the shape is a trigger.
読み終わるまでの所要時間 1 分最終更新 13時間前
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