Documentation / Node reference / code nodes

code/Param

Adds a param to the builder, and outputs its value.

Attributes

Adds a param to the builder it sits in, and outputs its value. Change it on the builder without opening it. Params with the same name share one value.

Parameters

Name Type What it does
type UInt8 AssetPath · AttributeName · AttributeNames · Bool · Button · Color · Color4 · Float · Float64 · NodePath · String · SInt8 · SInt32 · UInt8 · UInt32 · Vector2 · Vector2_64 · Vector2UInt · Vector3 · Vector3_64 · Vector3UInt · Vector4 · Vector4_64 · Vector4UInt · Decimal64 · Vector2Decimal64 · Vector3Decimal64 Type of the value.
name String Name of the param on the builder.
defaultValue_Bool Bool Value the param starts with.
defaultValue_Color Color Value the param starts with.
defaultValue_Color4 Color4 Value the param starts with.
defaultValue_Float Float Value the param starts with.
defaultValue_NodePath NodePath Texture node to read.
defaultValue_SInt32 SInt32 Value the param starts with.
defaultValue_UInt32 UInt32 Value the param starts with.
defaultValue_Vector2 Vector2 Value the param starts with.
defaultValue_Vector2UInt Vector2UInt Value the param starts with.
defaultValue_Vector3 Vector3 Value the param starts with.
defaultValue_Vector3UInt Vector3UInt Value the param starts with.
rangeMin_Float Float Lowest value of the slider.
rangeMax_Float Float Highest value of the slider.
rangeMin_SInt32 SInt32 Lowest value of the slider.
rangeMax_SInt32 SInt32 Highest value of the slider.
rangeMin_UInt32 UInt32 Lowest value of the slider.
rangeMax_UInt32 UInt32 Highest value of the slider.
rangeMin_Vector2 Vector2 Lowest value of the slider.
rangeMax_Vector2 Vector2 Highest value of the slider.
rangeMin_Vector3 Vector3 Lowest value of the slider.
rangeMax_Vector3 Vector3 Highest value of the slider.
rangeMin_Vector2UInt Vector2UInt Lowest value of the slider.
rangeMax_Vector2UInt Vector2UInt Highest value of the slider.
rangeMin_Vector3UInt Vector3UInt Lowest value of the slider.
rangeMax_Vector3UInt Vector3UInt Highest value of the slider.
rangeLockMin Bool Keeps the value at or above the lowest.
rangeLockMax Bool Keeps the value at or below the highest.
ctx UInt8 COMPUTE · GEO · MAT · RENDER · TEX · CODE Context of the texture node.
textureDimension UInt8 UNKNOWN · _1D · _2D · _3D Whether the texture is 2D or 3D.
textureSampleType UInt8 Number format of the texture's pixels.
textureVariableType UInt8 BOOL · FLOAT · I32 · LINE3 · MATRIX4 · SAMPLER · TEXTURE_2D · TEXTURE_3D · U32 · VEC2 · VEC2U32 · VEC3 · VEC3U32 · VEC4 · PLANE · RAY3 · VEC4U32 Type of the value read from the texture.

Examples

Scenes you can open in the editor that teach this node.

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.