NumberSequence
Overview
Description
NumberSequence
is a structure that defines a sequence of numerical key points. It is commonly utilized in animations, effects, and other time-based transitions to represent values that interpolate over time.
Properties
KeyPoints
An array containing all key points within the NumberSequence
. Each key point defines a time and a value, where the sequence interpolates between these points.
Code Samples
Constructors
new
Creates a new NumberSequence
using a single value. All key points will have the same value.
Parameters
number
InValue
The numerical value for the sequence.
Return
NumberSequence
A constructed `NumberSequence` containing the specified value as all key points.
Code Samples
new
Creates a new NumberSequence
using two values. A start and end key point will automatically be created.
Parameters
number
InValue0
The value at the start of the sequence.
number
InValue1
The value at the end of the sequence.
Return
NumberSequence
A constructed `NumberSequence` with the specified start and end values.
Code Samples
new
Creates a new NumberSequence
using an array of key points. Each key point determines a specific value at a certain time.
Parameters
array
InArrayValue
An array of `NumberSequenceKeyPoint` objects representing the desired sequence.
Return
NumberSequence
A constructed `NumberSequence` from the provided array of key points.
Code Samples
Methods
GetKeyPoints
Retrieves all key points within the NumberSequence
.
Parameters
Return
array
An array of `NumberSequenceKeyPoint` objects.
Code Samples
Interpolate
Interpolates the value of the NumberSequence
at a specific time.
Parameters
number
Time
The time (between 0 and 1) to retrieve the interpolated value.
Return
number
The interpolated value at the specified time.
Code Samples
Last updated