CompositeValueCurve¶
An animation curve that groups child FloatCurves which each animate a different component of a non-unary 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.
Description¶
An animation curve that groups child FloatCurves which each animate a different component of a non-unary value. The CurveType property specifies the type of value to be animated and, depending on this value, differently named children are used to drive the animation of the components of the value.
As follows are the names of the child curves that drive the animation for each possible CompositeValueCurveType value for CurveType:
- ColorRGB: {
"R","G","B"} - ColorHSV: {
"H","S","V"} - NumberRange: {
"Min","Max"} - Rect: {
"MinX","MaxX","MinY","MaxY"} - UDim: {
"Scale","Offset"} - UDim2: {
"ScaleX","OffsetX","ScaleY","OffsetY"} - Vector2: {
"X","Y"} - Vector3: {
"X","Y","Z"}
The children that drive the animation can be accessed via the GetComponentCurves() method which returns an array of curves in the order specified above. The value of the curve at a given time in the animation may be sampled by the GetValueAtTime() method.
Inheritance¶
Object โ Instance โ CompositeValueCurve
Properties¶
| Member | Signature | Summary |
|---|---|---|
CurveType |
CurveType: CompositeValueCurveType |
The type of value animated by this CompositeValueCurve. |
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetComponentCurves |
CompositeValueCurve:GetComponentCurves(): Instances |
Returns the child curves with the given names for the CurveType of this CompositeValueCurve. |
GetValueAtTime |
CompositeValueCurve:GetValueAtTime(time: float): Variant |
Returns the sampled animated value at the passed time argument. |
Roblox reference: CompositeValueCurve
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.