Kinemium Docs

UIAnchorLayout

Creates an anchor layout for UI elements.

Properties

PropertyTypeDefault
Namestring"UIAnchorLayout"
Enabledbooleantrue
totalPaddingXanytotalPaddingX + px.X
totalPaddingYanytotalPaddingY + px.Y
sizeXanychildSize.X
posXanytotalPaddingX + (effectiveWidth - sizeX) * 0.5
posXanytotalPaddingX + left
sizeXanymath.max(0, effectiveWidth - left - right)
posXanytotalPaddingX + left
sizeXanychildSize.X
sizeXanychildSize.X
posXanytotalPaddingX + effectiveWidth - right - sizeX
posXanytotalPaddingX + child.Position.X.Scale * effectiveWidth + child.Position.X.Offset
sizeXanychildSize.X
sizeYanychildSize.Y
posYanytotalPaddingY + (effectiveHeight - sizeY) * 0.5
posYanytotalPaddingY + top
sizeYanymath.max(0, effectiveHeight - top - bottom)
posYanytotalPaddingY + top
sizeYanychildSize.Y
sizeYanychildSize.Y
posYanytotalPaddingY + effectiveHeight - bottom - sizeY
posYanytotalPaddingY + child.Position.Y.Scale * effectiveHeight + child.Position.Y.Offset
sizeYanychildSize.Y

Functions


GetAbsoluteSize

Arguments

obj

Returns

This function returns nothing.

resolveUDim

Arguments

udim, axis

Returns

This function returns nothing.

API

instance:GetAbsoluteSize(obj)
instance:resolveUDim(udim, axis)

On this page