API ReferenceGE Extensionsflowgraphnodestypes
Number (Flowgraph Node)
- **Node Name:** `Number`
Overview
- Node Name:
Number - Category:
provider - File:
extensions/flowgraph/nodes/types/number.lua
Provides a constant numeric value. The value is set via the node's data properties and output every frame.
Pin Schema
Output Pins
| Pin | Type | Description |
|---|---|---|
value | number | The numeric value |
How It Works
init()- Setsdata.value = 0and disablesclearOutPinsOnStartso the value persists across resets.work()- Copiesself.data.valueto the output pin each frame.drawMiddle()- Displays the current number inline on the node.
Example Usage
-- This node simply outputs a constant number.
-- Set data.value in the node properties to any number.
-- Equivalent to:
self.pinOut.value.value = self.data.value -- e.g., 42Additional Methods
C:onDeserialized(nodeData)
Node method.
Parameters:
nodeData
C:onSerialize(res)
Node method.
Parameters:
res
See Also
- Bool (Flowgraph Node) - Related reference
- Color (Flowgraph Node) - Related reference
- Generic Set/Get Variable (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide