Documentation / Node reference / code nodes

code/Cast

Outputs the input converted to another type.

Values

A vector is converted component by component, so to must have as many components as the input.

Parameters

Name Type What it does
to 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 to convert to.
x Float Value to convert.

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.