Class AnimationTrackClip
Represents 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 AnimationTrackClip class.
Declaration
public AnimationTrackClip(AnimationClip track, bool looping = false, float playbackRate = 1, float? startTime = null, float? endTime = null)
Parameters
Type | Name | Description |
---|---|---|
AnimationClip | track | The animation track to be reproduced. |
bool | looping | Indicates if the animation should loop. |
float | playbackRate | The rate of playback. |
float? | startTime | The start time of the animation. |
float? | endTime | The end time of the animation. |
Properties
Duration
Gets the duration of the clip.
Declaration
public override float Duration { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
EndAnimationTime
Gets the ending frame.
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 is looping.
Declaration
public override bool Loop { get; set; }
Property Value
Type | Description |
---|---|
bool |
Overrides
PlayTime
Gets or sets the current 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 starting frame.
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 |
---|---|
AnimationClip |
Methods
InitializeClip()
Initializes this clip.
Declaration
protected override void InitializeClip()
Overrides
UpdateAnimationRange(float?, float?)
Updates the animation range.
Declaration
public void UpdateAnimationRange(float? startTime, float? endTime)
Parameters
Type | Name | Description |
---|---|---|
float? | startTime | The start time. |
float? | endTime | The end time. |
UpdateClip()
Gets the animation sample from this clip.
Declaration
public override AnimationBlendClip UpdateClip()
Returns
Type | Description |
---|---|
AnimationBlendClip | The animation sample. |