Improve Margin editing
This commit is contained in:
@@ -410,6 +410,17 @@ namespace FlaxEditor.GUI.Input
|
||||
Value = Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the limits from the attribute.
|
||||
/// </summary>
|
||||
/// <param name="limits">The limits.</param>
|
||||
public void SetLimits(LimitAttribute limits)
|
||||
{
|
||||
_min = limits.Min;
|
||||
_max = Mathf.Max(_min, limits.Max);
|
||||
Value = Value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the text of the textbox.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user