Useful tool for creating tween animations, mainly targeted to UI.
- Installed DOTween
To load this project, simply import unity package or drag and drop the WyneAnimator folder into your Unity project.
- Parses any component
- Conditional start
- Int
- Long
- Float
- Double
- Color
- Vector2
- Vector3
- Bool
I will probably add more supported types later
- OnStart
- OnEnable
- OnDisable
- OnDestroy
- OnClick (Only GameObject with 'Button' component)
- OnTrigger (Manual start)
- OnUIHover (If cursor is pointed over UI element)
- OnUIUnHover (If cursor lost focus from UI element)
To create an animation you have to add a "WAnimator" component to any GameObject. After that you need to open the animation editor:
You will see a window where you can add and delete animations:
The animation element looks like this:
Here you must select the animation condition (OnTrigger condition must be called manually by using TriggerAnimations(string triggerName) method in WAnimator):
Then you have to pass a condition object (object that being used to check condition) and animated component (component that will be animated). Animator will parse all the PUBLIC WRITABLE PROPERTIES AND PUBLIC FIELDS of component and show you something like this:
If you open one of these values, you can change its animation parameters, all used values will be animated when when the condition is met:
Also, used values will be highlighted in blue:
That's it!
P.S. I apologize for any mistake in my text, I am not a native English speaker.