From 1a5b379a6834dc5d2d4185353670e0979b1a701f Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Tue, 15 Mar 2022 10:28:45 +0000 Subject: [PATCH] Update documentation for Control rect_pivot_offset to include rotation (cherry picked from commit d2c0ee700ac486b2abb294db327fd6f1d11f5927) --- doc/classes/Control.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 34b93bb3357..c59f6ce7f1c 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -780,7 +780,7 @@ The minimum size of the node's bounding rectangle. If you set it to a value greater than (0, 0), the node's bounding rectangle will always have at least this size, even if its content is smaller. If it's set to (0, 0), the node sizes automatically to fit its content, be it a texture or child nodes. - By default, the node's pivot is its top-left corner. When you change its [member rect_scale], it will scale around this pivot. Set this property to [member rect_size] / 2 to center the pivot in the node's rectangle. + By default, the node's pivot is its top-left corner. When you change its [member rect_rotation] or [member rect_scale], it will rotate or scale around this pivot. Set this property to [member rect_size] / 2 to pivot around the Control's center. The node's position, relative to its parent. It corresponds to the rectangle's top-left corner. The property is not affected by [member rect_pivot_offset].