From ac511cbadc7d7a729e9f2f15ca6cebbf1fd14e5f Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 18 Mar 2021 16:34:54 +0100 Subject: [PATCH] Improve documentation comments for Control properties that are based on Pivot property --- Source/Engine/UI/GUI/Control.Bounds.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Engine/UI/GUI/Control.Bounds.cs b/Source/Engine/UI/GUI/Control.Bounds.cs index 6da2cf8cf..06bd0499d 100644 --- a/Source/Engine/UI/GUI/Control.Bounds.cs +++ b/Source/Engine/UI/GUI/Control.Bounds.cs @@ -274,9 +274,9 @@ namespace FlaxEngine.GUI } /// - /// Gets or sets the scale. + /// Gets or sets the scale. Scales control according to its Pivot which by default is (0.5,0.5) (middle of the control). If you set pivot to (0,0) it will scale the control based on it's upper-left corner. /// - [ExpandGroups, EditorDisplay("Transform"), Limit(float.MinValue, float.MaxValue, 0.1f), EditorOrder(1020), Tooltip("The control scale parameter.")] + [ExpandGroups, EditorDisplay("Transform"), Limit(float.MinValue, float.MaxValue, 0.1f), EditorOrder(1020), Tooltip("The control scale parameter. Scales control according to its Pivot which by default is (0.5,0.5) (middle of the control). If you set pivot to (0,0) it will scale the control based on it's upper-left corner.")] public Vector2 Scale { get => _scale; @@ -306,9 +306,9 @@ namespace FlaxEngine.GUI } /// - /// Gets or sets the shear transform angles (x, y). Defined in degrees. + /// Gets or sets the shear transform angles (x, y). Defined in degrees. Shearing happens relative to the control pivot point. /// - [ExpandGroups, EditorDisplay("Transform"), EditorOrder(1040), Tooltip("The shear transform angles (x, y). Defined in degrees.")] + [ExpandGroups, EditorDisplay("Transform"), EditorOrder(1040), Tooltip("The shear transform angles (x, y). Defined in degrees. Shearing happens relative to the control pivot point.")] public Vector2 Shear { get => _shear; @@ -322,9 +322,9 @@ namespace FlaxEngine.GUI } /// - /// Gets or sets the rotation angle (in degrees). + /// Gets or sets the rotation angle (in degrees). Control is rotated around it's pivot point (middle of the control by default). /// - [ExpandGroups, EditorDisplay("Transform"), EditorOrder(1050), Tooltip("The control rotation angle (in degrees).")] + [ExpandGroups, EditorDisplay("Transform"), EditorOrder(1050), Tooltip("The control rotation angle (in degrees). Control is rotated around it's pivot point (middle of the control by default).")] public float Rotation { get => _rotation;