Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


center

The center point of the collider in local space.
Read time 1 minuteLast updated 2 days ago

Definition

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