Documentation / Node reference / code nodes
code/SubnetInput
Brings one of the enclosing code subnet's inputs inside it.
Network
Inside a code/Subnet, this gives the value wired into the subnet's input at the given index, and takes its type. With nothing wired there, it gives its default, of the type chosen here: that type is also what the subnet's input shows until something is wired.
Parameters
| Name | Type | What it does |
|---|---|---|
| input | UInt8 | Which of the subnet's inputs this node stands for, counting from 0. |
| name | String | The name the subnet's input shows. Empty: this node's name. |
| type | UInt8 BOOL · FLOAT · S8 · S32 · S64 · U8 · U32 · U64 · VECTOR2 · VECTOR3 · VECTOR4 · VECTOR2U32 · VECTOR3U32 · MATRIX4 · LINE3 · RAY3 · PLANE · SAMPLER · TEXTURE_2D · TEXTURE_3D · TRIGGER · WORLD_OBJECT · STRING · ATTRIBUTE_NAMES · ENTITY_TYPE · BOX3 · TEXTURE_3D_FIELD · FLOAT64 · VECTOR2_64 · VECTOR3_64 · VECTOR4_64 · VECTOR4U32 | The type of the default, used when nothing is wired into the subnet's input. A wired value keeps its own type. |
| value_Bool | Bool | The value given when nothing is wired into the subnet's input. |
| value_Float | Float | The value given when nothing is wired into the subnet's input. |
| value_SInt32 | SInt32 | The value given when nothing is wired into the subnet's input. |
| value_UInt32 | UInt32 | The value given when nothing is wired into the subnet's input. |
| value_Vector2 | Vector2 | The value given when nothing is wired into the subnet's input. |
| value_Vector2UInt | Vector2UInt | The value given when nothing is wired into the subnet's input. |
| value_Vector3 | Vector3 | The value given when nothing is wired into the subnet's input. |
| value_Vector3UInt | Vector3UInt | The value given when nothing is wired into the subnet's input. |
| value_Vector4 | Vector4 | The value given when nothing is wired into the subnet's input. |
| source | UInt8 NONE · GLOBALS · VIEW_DIRECTION | What usually feeds this input. When a polynode made from this subnet is created from the tab menu, this input is wired to it: a code/Globals output, or a code/ViewDirection, reusing one already in the network. It changes nothing once created. |
| sourceGlobal | UInt8 P · N · TIME · UV · CAMERA_WORLD_POS · RESOLUTION · DELTA_TIME · WORLD_P · WORLD_N · ENTITY_INDEX · INPUT_COLOR · UVW · VOXEL_POSITION | Which code/Globals output feeds this input. A builder without that output leaves the input unwired. |
| rangeMin_Float | Float | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Float | Float | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_SInt32 | SInt32 | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_SInt32 | SInt32 | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_UInt32 | UInt32 | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_UInt32 | UInt32 | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_Vector2 | Vector2 | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Vector2 | Vector2 | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_Vector2UInt | Vector2UInt | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Vector2UInt | Vector2UInt | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_Vector3 | Vector3 | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Vector3 | Vector3 | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_Vector3UInt | Vector3UInt | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Vector3UInt | Vector3UInt | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeMin_Vector4 | Vector4 | The lowest value of the subnet's param: where its slider starts, and its bound when locked. |
| rangeMax_Vector4 | Vector4 | The highest value of the subnet's param: where its slider ends, and its bound when locked. |
| rangeLockMin | Bool | Whether the subnet's param refuses values below the range's minimum. Unlocked, the minimum only sets the slider. |
| rangeLockMax | Bool | Whether the subnet's param refuses values above the range's maximum. Unlocked, the maximum only sets the slider. |
See also
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.