Documentation / Node reference / code nodes

code/Swizzle

Outputs components of a vector, picked in any order.

Vector

Outputs components of a vector, picked in any order. Use it to reorder, repeat or drop components: zyx, xx, xy.

Parameters

Name Type What it does
v_Float Float Value to read components from.
v_Vector2 Vector2 Value to read components from.
v_Vector3 Vector3 Value to read components from.
v_Vector4 Vector4 Value to read components from.
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 output.
x_Vector2 UInt8 X · Y · Z · W Component written to the output's x.
y_Vector2 UInt8 X · Y · Z · W Component written to the output's y.
z_Vector2 UInt8 X · Y · Z · W Component written to the output's z.
w_Vector2 UInt8 X · Y · Z · W Component written to the output's w.
x_Vector3 UInt8 X · Y · Z · W Component written to the output's x.
y_Vector3 UInt8 X · Y · Z · W Component written to the output's y.
z_Vector3 UInt8 X · Y · Z · W Component written to the output's z.
w_Vector3 UInt8 X · Y · Z · W Component written to the output's w.
x_Vector4 UInt8 X · Y · Z · W Component written to the output's x.
y_Vector4 UInt8 X · Y · Z · W Component written to the output's y.
z_Vector4 UInt8 X · Y · Z · W Component written to the output's z.
w_Vector4 UInt8 X · Y · Z · W Component written to the output's w.

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.