Function Control.rectPivotOffset

By default, the node's pivot is its top-left corner. When you change its rectScale, it will scale around this pivot. Set this property to rectSize / 2 to center the pivot in the node's rectangle.

Vector2 rectPivotOffset() nothrow @property @nogc;

void rectPivotOffset (
  Vector2 v
) nothrow @property @nogc;