Value
One number, wired into as many places as you like.
constant, number, variable, knob, parameter, slider- Category
- Values
- Outputs
- value
- Runs live in
- Godot, Roblox
Type a number once and wire it wherever it is needed. Change it in one place and everything that reads it follows, which is the difference between a model you can adjust and a model you have to rebuild.
It is also how a knob gets out of the graph. Expose a Value and it leaves the editor as something a game can still set after export: an attribute on Roblox, a constant in a Godot kit. A number typed straight into a parameter cannot do that, because there is nothing there to give a name to.
Inputs
| Socket | Type | Wiring |
|---|
Parameters
| Name | Type | Default | Available when | What it does |
|---|---|---|---|---|
| Value | number | 0 | always | |
| Mode | decimal | integer | decimal | always |
Built with this node
- From the library to your gameLearn
- Build reusable systemsHow-to
- When the library is not enoughLearn
- Your first graphLearn
- demo-cliff-stackdemoOne wear number is read four different ways, so the same rocks come back as moss, algae or bare sand.
27 more teaching graphs use it without being about it.
See also
- randomValueWhen each copy should get its own number instead of all sharing one.
- mathTo derive a second number from this one rather than typing it twice.