Click or drag to resize

ControlRectPivotOffset Property

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.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 RectPivotOffset { get; set; }

Property Value

Type: Vector2
See Also