ドキュメント

Unity Engine

Unity Engine

offset

The local offset of the collider geometry.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Vector2 offset { get; set; }

Remarks

This offset can be used to shift the local origin of any 2D collider geometry.