Skip to content

UI Separator

Horizontal divider with an optional label.

Type: UISeparatorNode · Category: UI & Interface · Also found as: uiseparator

Property Type Default Description
size vec2 (360, 10) Width and height (px). Range 4 to 1280.
label string "" Text in the middle of the line (“” = a plain line).
lineColor color #3e4452ff Colour of the line.

Plus the common properties every node has.

Call them on the node (self.node in its script, or self.node:get_node("path")). Every node also has the Node methods.

Reads an Inspector property by its path (vectors and colours as tables); “script.” reads a field of the node’s script.

local value = self.node:get_property("size")
  • path UISeparatorNodeProperty|string

Returns any

UISeparatorNode:set_property(path, value, y)

Section titled “UISeparatorNode:set_property(path, value, y)”

Sets an Inspector property by its path: vectors as {x, y} or x, y; colours as {r, g, b[, a]} 0..1 or “#rrggbb[aa]”; enums by name; “script.” a field of the node’s script.

self.node:set_property("size", 100, 50)
  • path UISeparatorNodeProperty|string
  • value any
  • y? number
{
"type": "UISeparatorNode",
"name": "UISeparator",
"position": [
0,
0
],
"properties": {
"size": [
360,
10
],
"label": "",
"lineColor": "#3e4452ff"
}
}