UIAnimator

class in Doozy.Engine.UI.Animation

Description

Handles the setup of tweens for all the UI animations

Tweens

  • public static Tween MoveTween(RectTransform target, Vector3 from, Vector3 to, UIAnimation animation) – Returns tween that animates a position from a start value to an end value

  • public static Vector3 MoveLoopPositionA(UIAnimation animation, Vector3 startPosition) –

  • public static Vector3 MoveLoopPositionB(UIAnimation animation, Vector3 startPosition) – Returns an end position for a move loop animation

  • public static Tween MoveLoopTween(RectTransform target, UIAnimation animation, Vector3 startPosition) – Returns tween that animates a position in a loop

  • public static Tween MovePunchTween(RectTransform target, UIAnimation animation) – Returns a tween that animates a position with a fast animation that returns to the start values when finished

  • public static Tween MoveStateTween(RectTransform target, UIAnimation animation, Vector3 startPosition) – Returns a tween that animates a position from its current value to a target value

  • public static Tween RotateTween(RectTransform target, Vector3 from, Vector3 to, UIAnimation animation) – Returns tween that animates a rotation from a start value to an end value

  • public static Vector3 RotateLoopRotationA(UIAnimation animation, Vector3 startRotation) – Returns a start rotation for a rotate loop animation

  • public static Vector3 RotateLoopRotationB(UIAnimation animation, Vector3 startRotation) – Returns an end rotation for a rotate loop animation

  • public static Tween RotateLoopTween(RectTransform target, UIAnimation animation, Vector3 startRotation) – Returns tween that animates a rotation in a loop

  • public static Tween RotatePunchTween(RectTransform target, UIAnimation animation) – Returns a tween that animates a rotation with a fast animation that returns to the start values when finished

  • public static Tween RotateStateTween(RectTransform target, UIAnimation animation, Vector3 startRotation) – Returns a tween that animates a rotation from its current value to a target value

  • public static Tween ScaleTween(RectTransform target, Vector3 from, Vector3 to, UIAnimation animation) – Returns tween that animates a scale from a start value to an end value

  • public static Tween ScaleLoopTween(RectTransform target, UIAnimation animation) – Returns tween that animates a scale in a loop

  • public static Tween ScalePunchTween(RectTransform target, UIAnimation animation) – Returns a tween that animates a scale with a fast animation that returns to the start values when finished

  • public static Tween ScaleStateTween(RectTransform target, UIAnimation animation, Vector3 startScale) – Returns a tween that animates a scale from its current value to a target value

  • public static Tween FadeTween(RectTransform target, float from, float to, UIAnimation animation) – Returns tween that animates an alpha value from a start value to an end value

  • public static Tween FadeLoopTween(RectTransform target, UIAnimation animation) – Returns tween that animates an alpha value in a loop

  • public static Tween FadeStateTween(RectTransform target, UIAnimation animation, float startAlpha) – Returns a tween that animates an alpha value from its current value to a target value

Animations

Helper Methods

Extension Methods

  • private static void SetEase(this Tween tween, Move move) – Extension method for a Tween that sets its animation ease according to the Move animation settings. Depending on the selected EaseType in the animation settings it sets either an Ease or an AnimationCurve

  • private static void SetEase(this Tween tween, Rotate rotate) – Extension method for a Tween that sets its animation ease according to the Rotate animation settings. Depending on the selected EaseType in the animation settings it sets either an Ease or an AnimationCurve

  • private static void SetEase(this Tween tween, Scale scale) – Extension method for a Tween that sets its animation ease according to the Scale animation settings. Depending on the selected EaseType in the animation settings it sets either an Ease or an AnimationCurve

  • private static void SetEase(this Tween tween, Fade fade) – Extension method for a Tween that sets its animation ease according to the Fade animation settings. Depending on the selected EaseType in the animation settings it sets either an Ease or an AnimationCurve