Class
UISizeConstraint
Ensures a GuiObject does not become larger or smaller than the
constraint's maximum size or minimum size.
The UISizeConstraint ensures a GuiObject does not become
larger or smaller than the MaxSize and
MinSize. For example, if
MaxSize is set to
(200, 200) and
MinSize to (100, 100), the constrained object cannot scale to be
larger than 200×200 pixels or smaller than 100×100 pixels.
Note that if the object with this constraint is also under the control of a
UILayout such as UIGridLayout, the constraint determines
the object's minimum/maximum size and overwrites any size the layout would
apply.
Properties 2#
MaxSizeVector2 | The largest size, in pixels, the parent object is allowed to be.ReadSafe |
MinSizeVector2 | The smallest size, in pixels, the object is allowed to be.ReadSafe |
MaxSize: Vector2#
ReadSafe
The largest size, in pixels, the parent object is allowed to be. The X
and Y of this value must be greater than or equal to the corresponding
components of MinSize.
MinSize: Vector2#
ReadSafe
The smallest size, in pixels, the object is allowed to be. The X and
Y of this value must be less than or equal to the corresponding
components of MaxSize.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild