Skip to main content

AnimationCurve.EaseInOut(number timeStart, number valueStart, number timeEnd, number valueEnd)

Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.

Parameters:

NameTypeDescription
timeStartnumberThe start time for the ease curve.
valueStartnumberThe start value for the ease curve.
timeEndnumberThe end time for the ease curve.
valueEndnumberThe end value for the ease curve.

Returns:

typeDescription
AnimationCurveThe ease-in and out curve generated from the specified values.

Usage

---@type number
local timeStart;

---@type number
local valueStart;

---@type number
local timeEnd;

---@type number
local valueEnd;


local val0 = AnimationCurve:EaseInOut(timeStart, valueStart, timeEnd, valueEnd)