Constant
7/14/25Less than 1 minute
AnimationCurve.Constant(number timeStart, number timeEnd, number value)
Creates a constant "curve" starting at timeStart, ending at timeEnd and with the value value.
Parameters:
| Name | Type | Description |
|---|---|---|
| timeStart | number | The start time for the constant curve. |
| timeEnd | number | The start time for the constant curve. |
| value | number | The value for the constant curve. |
Returns:
| type | Description |
|---|---|
| AnimationCurve | The 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)
