기술 자료

Unity Engine

Unity Engine

center

The center point of the collider in local space.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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