379 B
379 B
setSpacing
Description
Sets the space between objects
Parameters
numberNumber of pixels of spacing between each object - default is 1
Returns
objectThe object in use
Usage
- Creates a default flexbox and sets the spacing to 5 pixels.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setSpacing(5)