UI Volume Meter
Stereo level meter.
Type: UIVolumeMeterNode · Category: UI & Interface · Also found as: uivolumemeter
Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
size |
vec2 | (120, 320) |
Width and height (px). Range 4 to 1280. |
label |
string | "VU" |
Caption shown next to the control. |
levelL |
number | -60 |
Left channel level (dB). Range -60 to 3. |
levelR |
number | -120 |
Right channel level (dB). Range -120 to 3. |
minDb |
number | -60 |
Bottom of the meter (dB). Range -100 to 0. |
maxDb |
number | 3 |
Top of the meter (dB). Range 0 to 12. |
orientation |
enum: Vertical, Horizontal |
Vertical |
Horizontal or vertical. |
Plus the common properties every node has.
Lua methods
Section titled “Lua methods”Call them on the node (self.node in its script, or self.node:get_node("path")). Every node also has the Node methods.
UIVolumeMeterNode:get_property(path)
Section titled “UIVolumeMeterNode:get_property(path)”Reads an Inspector property by its path (vectors and colours as tables); “script.
local value = self.node:get_property("size")pathUIVolumeMeterNodeProperty|string
Returns any
UIVolumeMeterNode:set_property(path, value, y)
Section titled “UIVolumeMeterNode: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.
self.node:set_property("size", 100, 50)pathUIVolumeMeterNodeProperty|stringvalueanyy?number
In a scene file
Section titled “In a scene file”{ "type": "UIVolumeMeterNode", "name": "UIVolumeMeter", "position": [ 0, 0 ], "properties": { "size": [ 120, 320 ], "label": "VU", "levelL": -60 }}