Class Animator
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Drives animations from the host frame timer. Obtain it through Animator.
public sealed class Animator
- Inheritance
-
Animator
- Inherited Members
Properties
IsRunning
true if at least one animation is running.
public bool IsRunning { get; }
Property Value
Methods
Animate(Color, Color, double, Action<Color>, Func<float, float>?, Action?)
Animates a color.
public Animation Animate(Color from, Color to, double durationSeconds, Action<Color> setter, Func<float, float>? easing = null, Action? completed = null)
Parameters
fromColortoColordurationSecondsdoublesetterAction<Color>easingFunc<float, float>completedAction
Returns
Animate(float, float, double, Action<float>, Func<float, float>?, Action?)
Animates a float from from to to.
public Animation Animate(float from, float to, double durationSeconds, Action<float> setter, Func<float, float>? easing = null, Action? completed = null)
Parameters
fromfloattofloatdurationSecondsdoublesetterAction<float>easingFunc<float, float>completedAction
Returns
CancelAll()
Cancels every running animation.
public void CancelAll()
Fade(UIElement, float, double, Action?)
Fades an element's opacity.
public Animation Fade(UIElement element, float to, double durationSeconds = 0.2, Action? completed = null)
Parameters
Returns
Start(double, Action<float>, Func<float, float>?, Action?, int, bool)
Starts an animation calling apply with the eased progress (0 → 1) on each frame.
public Animation Start(double durationSeconds, Action<float> apply, Func<float, float>? easing = null, Action? completed = null, int repeatCount = 0, bool autoReverse = false)
Parameters
durationSecondsdoubleapplyAction<float>easingFunc<float, float>completedActionrepeatCountintautoReversebool