Reference API Roblox

Engine API

Website

Related

Reference API Roblox

CompositeValueCurve

An animation curve that groups child FloatCurves which each animate a different component of a non-unary value.

Member index 3

HistoryMember
701CurveType: CompositeValueCurveType
701GetComponentCurves(): Instances
701GetValueAtTime(time: float): Variant
inherited from Instance
553Archivable: bool
670Capabilities: SecurityCapabilities
553Name: string
553Parent: Instance
702PredictionMode: PredictionMode
670Sandboxed: bool
680UniqueId: UniqueId
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
648GetChildren(): Instances
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
641GetStyled(name: string): Variant
657GetStyledPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
664IsPropertyModified(property: string): bool
698QueryDescendants(selector: string): Instances
573Remove(): null
576RemoveTag(tag: string): null
664ResetPropertyToDefault(property: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
648children(): Instances
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
648getChildren(): Instances
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
553childAdded(child: Instance)
inherited from Object
647ClassName: string
647className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
650isA(className: string): bool
647Changed(property: string)

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:

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.

History 4

Members 3

CurveType

TypeDefault
CompositeValueCurveTypeNumberRange

The type of value animated by this CompositeValueCurve. See CompositeValueCurveType for options.

History 1

GetComponentCurves

Parameters (0)
No parameters.
Returns (1)
Instances

This method returns the child curves with the given names for the CurveType of this CompositeValueCurve, in the order given by the list of child curves outlined at the top of this page. Any curve that does not exist prior to calling this method will be created and added as a child with the appropriate name. That new curve will be an empty FloatCurve.

History 1

GetValueAtTime

Parameters (1)
timefloat
Returns (1)
Variant

This method returns the sampled animated value at the passed time argument. The type of the returned value will match that specified by the CurveType property.

If any child curve is missing from the children of the curve, the corresponding value in the returned property will be 0. For example, if a curve has a CurveType of CompositeValueCurveType.ColorRGB but only one FloatCurve child named "G", then the returned FloatCurve will have values of 0 for "R" and "B", but the "G" value will be sampled from the child curve.

History 1

Settings