Documentation / Node reference / code nodes

code/Constant

Outputs a fixed value of the chosen type.

Values

Outputs the same value everywhere. asColor edits a vector3 as a color.

Parameters

Name Type What it does
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 · BUFFER · INTERSECTION Type of the value.
value_Bool Bool Value to output.
value_Float Float Value to output.
value_SInt32 SInt32 Value to output.
value_UInt32 UInt32 Value to output.
value_Vector2 Vector2 Value to output.
value_Vector2UInt Vector2UInt Value to output.
value_Vector3 Vector3 Value to output.
value_Vector3UInt Vector3UInt Value to output.
value_Vector4 Vector4 Value to output.
value_Color Color Value to output.
asColor Bool Edit the value with a color picker.

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.