AnimationClipΒΆ
Inherited: Resource
DescriptionΒΆ
An AnimationClip resource contains keyframe based animation data. The animation data split to a number of tracks that must be connected with the properties of Components. Each track can contain multiple curves or channels like X, Y and Z Which allows them to animate elements independently.
Public MethodsΒΆ
int |
addAnimationTrack (const AnimationTrack & track) |
int |
duration () const |
void |
removeAnimationTrack (int index) |
AnimationTracks & |
tracks () |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
int AnimationClip::addAnimationTrack (AnimationTrack & track)
Adds animation track to current AnimationClip. Returns index of added track;
int AnimationClip::duration () const
Returns duration of the animation clip in milliseconds.
void AnimationClip::removeAnimationTrack (int index)
Removes animation track at givven index.
AnimationTracks & AnimationClip::tracks ()
Returns all tracks associated with current animation clip.