Skip to content
mouse114514 edited this page Sep 12, 2026 · 1 revision

Clamp

Clamp

Overview

Clamps a value between a minimum and maximum (below min becomes min, above max becomes max).

Slots

Slot Type Description
VALUE Number slot the value to clamp
MIN Number slot minimum
MAX Number slot maximum

Connections

Connection Type Description
Output Number the clamped result

Generated Code

Emits Mathf.Clamp(VALUE, MIN, MAX).

Block ID: cu_math_clamp


中文 | Value Reporter Blocks | Block Reference

Clone this wiki locally