diff --git a/Source/Engine/UI/GUI/Control.Bounds.cs b/Source/Engine/UI/GUI/Control.Bounds.cs index ff548c669..6054250f8 100644 --- a/Source/Engine/UI/GUI/Control.Bounds.cs +++ b/Source/Engine/UI/GUI/Control.Bounds.cs @@ -50,7 +50,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the normalized position in the parent control that the upper left corner is anchored to (range 0-1). /// - [Serialize, HideInEditor] + [Serialize, HideInEditor, Limit(0, 1, 0.01f)] public Float2 AnchorMin { get => _anchorMin; @@ -69,7 +69,7 @@ namespace FlaxEngine.GUI /// /// Gets or sets the normalized position in the parent control that the bottom right corner is anchored to (range 0-1). /// - [Serialize, HideInEditor] + [Serialize, HideInEditor, Limit(0, 1, 0.01f)] public Float2 AnchorMax { get => _anchorMax;