AnimationChannel

AnimationChannel class

A channel maps property’s component field to a set of keyframe sequences @hideconstructor

Methods

getComponentType

NameDescription
getComponentType()Gets the component field’s type

Result:


getName

NameDescription
getName()Gets the name of the channel

Result:


getDefaultValue

NameDescription
getDefaultValue()Gets or sets the Default value of the channel. If a channel has no keyframe sequences connected, the default value will be used during the animation evaluation. A real scenario: Animation only animates a node’s x coordinate, the y and z are not changed, then the default value will be used during full translation evaluation.

Result:


setDefaultValue

NameDescription
setDefaultValue(value)Gets or sets the Default value of the channel. If a channel has no keyframe sequences connected, the default value will be used during the animation evaluation. A real scenario: Animation only animates a node’s x coordinate, the y and z are not changed, then the default value will be used during full translation evaluation.

Result:


getKeyframeSequences

NameDescription
getKeyframeSequences()Gets all keyframe sequences inside this channel

Result:


addKeyframeSequence

NameDescription
addKeyframeSequence(sequence)Adds keyframe sequence to this channel

Parameters:

NameTypeDescription
sequenceKeyframeSequenceThe keyframe sequence to add.

Result:


iterator

NameDescription
iterator()Reserved for internal use.

Result: