Class TransitionClip
A transition between two video clips.
Inherited Members
Namespace: Evergine.Components.Animation
Assembly: Evergine.Framework.dll
Syntax
public class TransitionClip : BinaryAnimationBlendClip
Constructors
TransitionClip(AnimationBlendClip, AnimationBlendClip, float, float, bool)
Initializes a new instance of the TransitionClip class.
Declaration
public TransitionClip(AnimationBlendClip clipA, AnimationBlendClip clipB, float duration, float playbackRate = 1, bool smoothTransition = false)
Parameters
Type | Name | Description |
---|---|---|
AnimationBlendClip | clipA | Clip A. |
AnimationBlendClip | clipB | Clip B. |
float | duration | Transition duration. |
float | playbackRate | Playback rate. |
bool | smoothTransition | If the transition has smooth lerp. |
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
Methods
UpdateBinaryClip()
Updates the binary clip.
Declaration
protected override AnimationBlendClip UpdateBinaryClip()
Returns
Type | Description |
---|---|
AnimationBlendClip | The blend clip. |