UIAnchorLayout
Creates an anchor layout for UI elements.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIAnchorLayout" |
Enabled | boolean | true |
totalPaddingX | any | totalPaddingX + px.X |
totalPaddingY | any | totalPaddingY + px.Y |
sizeX | any | childSize.X |
posX | any | totalPaddingX + (effectiveWidth - sizeX) * 0.5 |
posX | any | totalPaddingX + left |
sizeX | any | math.max(0, effectiveWidth - left - right) |
posX | any | totalPaddingX + left |
sizeX | any | childSize.X |
sizeX | any | childSize.X |
posX | any | totalPaddingX + effectiveWidth - right - sizeX |
posX | any | totalPaddingX + child.Position.X.Scale * effectiveWidth + child.Position.X.Offset |
sizeX | any | childSize.X |
sizeY | any | childSize.Y |
posY | any | totalPaddingY + (effectiveHeight - sizeY) * 0.5 |
posY | any | totalPaddingY + top |
sizeY | any | math.max(0, effectiveHeight - top - bottom) |
posY | any | totalPaddingY + top |
sizeY | any | childSize.Y |
sizeY | any | childSize.Y |
posY | any | totalPaddingY + effectiveHeight - bottom - sizeY |
posY | any | totalPaddingY + child.Position.Y.Scale * effectiveHeight + child.Position.Y.Offset |
sizeY | any | childSize.Y |
Functions
GetAbsoluteSize
Arguments
objReturns
This function returns nothing.
resolveUDim
Arguments
udim, axisReturns
This function returns nothing.
API
instance:GetAbsoluteSize(obj)
instance:resolveUDim(udim, axis)