Documentation / Node reference / code nodes

code/Clamp

Outputs the input limited to a range.

Math

Outputs the input, raised to low or lowered to high when it falls outside. Vectors are clamped component by component.

Parameters

Name Type What it does
input_Float Float Value to clamp.
low_Float Float Lowest value returned.
high_Float Float Highest value returned.
input_Vector2 Vector2 Value to clamp.
low_Vector2 Vector2 Lowest value returned.
high_Vector2 Vector2 Highest value returned.
input_Vector3 Vector3 Value to clamp.
low_Vector3 Vector3 Lowest value returned.
high_Vector3 Vector3 Highest value returned.
input_Vector4 Vector4 Value to clamp.
low_Vector4 Vector4 Lowest value returned.
high_Vector4 Vector4 Highest value returned.

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.