文档

Unity Engine

Unity Engine

isTrigger

Get/Set if the shape is a trigger. Changing the state here is relatively expensive and should be avoided. See PhysicsShapeDefinition.isTrigger.
阅读时间1 分钟最后更新于 23 天前

Definition

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