Unity Engine documentationScript ReferenceUnityEngineBoxCollider2DcenterThe 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 insteadUpgrade to offset public Vector2 center { get; set; }