ドキュメント

Unity Engine

Unity Engine

center

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

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
注意
Removed. BoxCollider2D.center has been obsolete. Use BoxCollider2D.offset instead
Upgrade to offset
public Vector2 center { get; set; }