FloatCurve¶
Not yet Class
A sorted list of time-value pairs that define a curve. Used to animate a single numerical value.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
0 Nova members · 14 modern Roblox members not implemented yet
Description¶
An instance representing a 1D float curve encoded via a sorted list of FloatCurveKeys. The shape of the interpolation curve between two keys is determined by the FloatCurveKey.Interpolation type.
Inheritance¶
Object → Instance → FloatCurve
Properties¶
| Member | Signature | Summary |
|---|---|---|
Length |
Length: int |
Number of keys in the float curve. |
ValuesAndTimes |
ValuesAndTimes: BinaryString |
— |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetKeyAtIndex |
FloatCurve:GetKeyAtIndex(index: int): FloatCurveKey |
Returns a copy of a key at a given index. |
GetKeyIndicesAtTime |
FloatCurve:GetKeyIndicesAtTime(time: float): Array |
Returns the index of the last and first key of a period of time. |
GetKeys |
FloatCurve:GetKeys(): Array |
Returns a copy of all the keys in the FloatCurve as a Luau array of FloatCurveKeys. |
GetValueAtTime |
FloatCurve:GetValueAtTime(time: float): float? |
Samples the float curve at a given time passed as argument. |
InsertKey |
FloatCurve:InsertKey(key: FloatCurveKey): Array |
Adds the key passed as an argument to this curve. If a key at the same time is found, it will be replaced. |
RemoveKeyAtIndex |
FloatCurve:RemoveKeyAtIndex(startingIndex: int, count: int = 1): int |
Removes a given number of keys starting from a given index. |
SetKeys |
FloatCurve:SetKeys(keys: Array): int |
Resets this curve's keys using the FloatCurveKey array passed as an argument. |
Roblox reference: FloatCurve
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.