Class AnimationChannel

AnimationChannel class

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

public class AnimationChannel : KeyframeSequence

Properties

NameDescription
BindPoint { get; }Gets the property bind point which owns this curve
ComponentType { get; }Gets the component field’s type
DefaultValue { get; set; }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.
KeyFrames { get; }Gets the key frames of this curve.
KeyframeSequence { get; set; }Gets associated keyframe sequence inside this channel
virtual Name { get; set; }Gets or sets the name.
PostBehavior { get; }Gets the post behavior indicates what the sampled value should be after the last key frame.
PreBehavior { get; }Gets the pre behavior indicates what the sampled value should be before the first key.
Properties { get; }Gets the collection of all properties.

Methods

NameDescription
Add(double, float)Create a new key frame with specified value
Add(double, float, Interpolation)Create a new key frame with specified value
FindProperty(string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
GetEnumerator()Gets the enumerator to traverse all key frames.
GetProperty(string)Get the value of specified property
RemoveProperty(Property)Removes a dynamic property.
RemoveProperty(string)Remove the specified property identified by name
Reset()Removes all key frames and reset the post/pre behaviors.
SetProperty(string, object)Sets the value of specified property

See Also