Files
Basalt/docs/objects/Flexbox/setSpacing.md
2023-05-08 07:00:28 +10:00

24 lines
379 B
Markdown

## setSpacing
### Description
Sets the space between objects
### Parameters
1. `number` Number of pixels of spacing between each object - default is 1
### Returns
1. `object` The object in use
### Usage
* Creates a default flexbox and sets the spacing to 5 pixels.
```lua
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setSpacing(5)
```