Class AnimationTrackClip
An animation track clip.
Inherited Members
Namespace: Evergine.Components.Animation
Assembly: Evergine.Framework.dll
Syntax
public class AnimationTrackClip : AnimationBlendClip
Constructors
AnimationTrackClip(AnimationClip, bool, float, float?, float?)
Initializes a new instance of the Animation
Declaration
public AnimationTrackClip(AnimationClip track, bool looping = false, float playbackRate = 1, float? startTime = null, float? endTime = null)
Parameters
Type | Name | Description |
---|---|---|
Animation |
track | The animation track to reproduce. |
bool | looping | Looping animation. |
float | playbackRate | The playback rate. |
float? | startTime | The start time. |
float? | endTime | The end time. |
Properties
Duration
Gets the duration.
Declaration
public override float Duration { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
EndAnimationTime
Gets the start animation time.
Declaration
public override float EndAnimationTime { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
Framerate
Gets the frames per second of the clip.
Declaration
public override float Framerate { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
Loop
Gets or sets a value indicating whether the animation has looping.
Declaration
public override bool Loop { get; set; }
Property Value
Type | Description |
---|---|
bool |
Overrides
PlayTime
Gets or sets the play time.
Declaration
public override float PlayTime { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
PlaybackRate
Gets or sets the playback rate.
Declaration
public override float PlaybackRate { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
StartAnimationTime
Gets the start animation time.
Declaration
public override float StartAnimationTime { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
Track
Gets the animation track.
Declaration
public AnimationClip Track { get; }
Property Value
Type | Description |
---|---|
Animation |
Methods
InitializeClip()
Initialize this clip.
Declaration
protected override void InitializeClip()
Overrides
UpdateAnimationRange(float?, float?)
Update the animation range.
Declaration
public void UpdateAnimationRange(float? startTime, float? endTime)
Parameters
UpdateClip()
Gets the animation sample of this clip.
Declaration
public override AnimationBlendClip UpdateClip()
Returns
Type | Description |
---|---|
Animation |
The animation sample. |