Documentation

Unity Engine

Download Unity

Unity Engine

center

The position of the shape's centroid relative to the shape's origin.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 center { readonly get; set; }