Skip to main content

Mathf.Clamp01(number value)

Clamps value between 0 and 1 and returns value.

Parameters:

NameTypeDescription
valuenumbervalue

Returns:

typeDescription
numberClamped value between 0 and 1

Usage

---@type number
local value;


local val0 = Mathf:Clamp01(value)