ドキュメント

Unity Engine

Unity Engine

oneWay

Whether to use one-way collision behaviour or not.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
注意
Removed. PlatformEffector2D.oneWay has been obsolete. Use PlatformEffector2D.useOneWay instead
public bool oneWay { get; set; }

Remarks

Various behaviour associated with 2D platforms are provided by this effector such as allowing colliders to pass-through the effector colliders in one-direction (one-way) as well as controller whether friction or bounce should be applied.