UIAnchorLayout
Creates an anchor layout for UI elements.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIAnchorLayout" |
Enabled | boolean | true |
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
resolveUDim
Arguments
udim, axisReturns
This function returns nothing.
render
Arguments
surface, objectReturns
This function returns nothing.
API
instance:resolveUDim(udim, axis)
instance:render(surface, object)