UISizeConstraint¶
Ensures a GuiObject does not become larger or smaller than the constraint's maximum size or minimum size.
Not implemented yet
Size clamps are not implemented.
Workaround: Clamp size in a Luau layout pass.
Description¶
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)(100, 100)
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.
Inheritance¶
Object → Instance → UIBase → UIComponent → UIConstraint → UISizeConstraint
Properties¶
| Member | Signature | Summary |
|---|---|---|
MaxSize |
MaxSize: Vector2 |
The largest size, in pixels, the parent object is allowed to be. |
MinSize |
MinSize: Vector2 |
The smallest size, in pixels, the object is allowed to be. |
Roblox reference: UISizeConstraint
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.