com.iron-mountain.standard-animations
v1.3.3
Published
A library for various coded animations.
Downloads
12
Readme
Standard Animations
Version: 1.3.3
Description:
A library for various coded animations.
Use Cases:
- Quickly add simple animations to GameObjects and UI elements.
Directions for Use:
All of the key components can be used out-of-the box, and each one is pretty straightforward to set up. One thing to note, StandardAnimation is an abstract class with methods Enter(), EnterImmediate(), Exit(), and ExitImmediate(). Drawer, CanvasGroupAnimator, and ScaleAnimator all inherit from StandardAnimation. StandardAnimationGroup is a simple component that can be used to group and control multiple StandardAnimations.
Package Mirrors:
Key Scripts & Components:
- public abstract class StandardAnimation : MonoBehaviour
- Properties:
- public float Seconds { get; }
- Methods:
- public abstract void Enter()
- public abstract void Enter(Action onComplete)
- public abstract void Enter(float animationSeconds, Action onComplete)
- public abstract void EnterImmediate()
- public abstract void EnterImmediate(Action onComplete)
- public abstract void Exit()
- public abstract void Exit(Action onComplete)
- public abstract void Exit(float animationSeconds, Action onComplete)
- public abstract void ExitImmediate()
- public abstract void ExitImmediate(Action onComplete)
- Properties:
- public class StandardAnimationGroup : MonoBehaviour
- Properties:
- public StandardAnimation[] StandardAnimations { get; }
- Methods:
- public void ExitImmediate()
- public void Exit()
- public void EnterImmediate()
- public void Enter()
- Properties:
- public struct StandardAnimationGroupController
- Actions:
- public event Action OnInstanceChanged
- Properties:
- public StandardAnimationGroup Instance { get; }
- Methods:
- public StandardAnimationGroup Spawn(Transform parent)
- public void Enter()
- public void EnterImmediate()
- public void Exit()
- public void ExitImmediate()
- public void Destroy(float delaySeconds)
- Actions:
- public struct StandardAnimationGroupControllerTemplated`1
- Actions:
- public event Action OnInstanceChanged
- Properties:
- public T Instance { get; }
- public StandardAnimationGroup AnimationGroup { get; }
- Methods:
- public T Spawn(Transform parent)
- public void Enter()
- public void EnterImmediate()
- public void Exit()
- public void ExitImmediate()
- public void Destroy(float delaySeconds)
- Actions:
Aim Constraints
- public class LocalAimConstraint : MonoBehaviour
- Properties:
- public Transform Target { get; set; }
- Properties:
Cameras
- public class CameraFieldOfViewAnimator : MonoBehaviour
- Properties:
- public float Seconds { get; }
- public float ZoomedOutFieldOfView { get; }
- public float ZoomedInFieldOfView { get; }
- public float CurrentFieldOfView { get; }
- Methods:
- public void ZoomIn()
- public void ZoomIn(Action onComplete)
- public void ZoomIn(float animationSeconds, Action onComplete)
- public void ZoomInImmediate()
- public void ZoomInImmediate(Action onComplete)
- public void ZoomOut()
- public void ZoomOut(Action onComplete)
- public void ZoomOut(float animationSeconds, Action onComplete)
- public void ZoomOutImmediate()
- public void ZoomOutImmediate(Action onComplete)
- public void ZoomTo(float fieldOfView)
- public void ZoomTo(float fieldOfView, Action onComplete)
- public void ZoomTo(float fieldOfView, float animationSeconds, Action onComplete)
- public void ZoomToImmediate(float fieldOfView)
- public void ZoomToImmediate(float fieldOfView, Action onComplete)
- Properties:
Canvas Groups
- public class CanvasGroupAnimateByPosition : MonoBehaviour
- public class CanvasGroupAnimator : StandardAnimation
- Methods:
- public override void Enter()
- public override void Enter(Action onComplete)
- public override void Enter(float animationSeconds, Action onComplete)
- public void FadeIn()
- public void FadeIn(Action onComplete)
- public void FadeIn(float animationSeconds, Action onComplete)
- public override void EnterImmediate()
- public override void EnterImmediate(Action onComplete)
- public void FadeInImmediate()
- public void FadeInImmediate(Action onComplete)
- public override void Exit()
- public override void Exit(Action onComplete)
- public override void Exit(float animationSeconds, Action onComplete)
- public void FadeOut()
- public void FadeOut(Action onComplete)
- public void FadeOut(float animationSeconds, Action onComplete)
- public override void ExitImmediate()
- public override void ExitImmediate(Action onComplete)
- public void FadeOutImmediate()
- public void FadeOutImmediate(Action onComplete)
- Methods:
- public class CanvasGroupPulser : MonoBehaviour
Rect Transforms
- public class Drawer : StandardAnimation
- Actions:
- public event Action OnCurrentTargetChanged
- public event Action OnMoving
- Properties:
- public float PreviousTarget { get; }
- public float CurrentTarget { get; }
- Methods:
- public Drawer Initialize(float seconds, Vector2 anchorMinOpen, Vector2 anchorMaxOpen, Vector2 anchorMinClosed, Vector2 anchorMaxClosed)
- public override void Enter()
- public override void Enter(Action onComplete)
- public override void Enter(float animationSeconds, Action onComplete)
- public float Open()
- public float Open(Action onComplete)
- public float Open(float animationSeconds, Action onComplete)
- public override void EnterImmediate()
- public override void EnterImmediate(Action onComplete)
- public void OpenImmediate()
- public void OpenImmediate(Action onComplete)
- public override void Exit()
- public override void Exit(Action onComplete)
- public override void Exit(float animationSeconds, Action onComplete)
- public float Close()
- public float Close(Action onComplete)
- public float Close(float animationSeconds, Action onComplete)
- public override void ExitImmediate()
- public override void ExitImmediate(Action onComplete)
- public void CloseImmediate()
- public void CloseImmediate(Action onComplete)
- public float SetTarget(float target, Action onComplete)
- public void SetTargetImmediate(float target)
- Actions:
- public class DrawerSFX : MonoBehaviour
- public class FlippableRect : MonoBehaviour
- Properties:
- public GameObject FrontSide { get; }
- public GameObject BackSide { get; }
- Methods:
- public void Flip()
- public void FlipToFront()
- public void FlipToFrontImmediate()
- public void FlipToBack()
- public void FlipToBackImmediate()
- Properties:
- public struct Padding
- Properties:
- public float Top { get; }
- public float Right { get; }
- public float Bottom { get; }
- public float Left { get; }
- Properties:
- public class RectTransformMatcher : MonoBehaviour
- Methods:
- public void LateUpdate()
- Methods:
- public class RectTransformPointFollower : MonoBehaviour
- Methods:
- public void LateUpdate()
- Methods:
- public class RectTransformPositionAnimator : MonoBehaviour
- Methods:
- public void Reset()
- public void SetPosition(Vector2 anchorMin, Vector2 anchorMax)
- Methods:
Rotation
- public class Rotator : MonoBehaviour
Scale
- public class ScalePulser : MonoBehaviour
- public class ScaleUpAndDownAnimator : StandardAnimation
- Methods:
- public override void Enter()
- public override void Enter(Action onComplete)
- public override void Enter(float animationSeconds, Action onComplete)
- public void ScaleUp()
- public void ScaleUp(Action onComplete)
- public void ScaleUp(float animationSeconds, Action onComplete)
- public override void EnterImmediate()
- public override void EnterImmediate(Action onComplete)
- public void ScaleUpImmediate()
- public void ScaleUpImmediate(Action onComplete)
- public override void Exit()
- public override void Exit(Action onComplete)
- public override void Exit(float animationSeconds, Action onComplete)
- public void ScaleDown()
- public void ScaleDown(Action onComplete)
- public void ScaleDown(float animationSeconds, Action onComplete)
- public override void ExitImmediate()
- public override void ExitImmediate(Action onComplete)
- public void ScaleDownImmediate()
- public void ScaleDownImmediate(Action onComplete)
- Methods: