Skip to main content

AnimationCurve.Constant(number timeStart, number timeEnd, number value)

Creates a constant "curve" starting at timeStart, ending at timeEnd and with the value value.

Parameters:

NameTypeDescription
timeStartnumberThe start time for the constant curve.
timeEndnumberThe start time for the constant curve.
valuenumberThe value for the constant curve.

Returns:

typeDescription
AnimationCurveThe constant curve created from the specified values.

Usage

---@type number
local timeStart;

---@type number
local timeEnd;

---@type number
local value;


local val0 = AnimationCurve:Constant(timeStart, timeEnd, value)