Skip to content

Useful tool for creating tween animations, mainly targeted to UI.

Notifications You must be signed in to change notification settings

Wyne10/WyneAnimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

WyneAnimator

Useful tool for creating tween animations, mainly targeted to UI.

Alt Text

Requirements

  • Installed DOTween

Download

To load this project, simply import unity package or drag and drop the WyneAnimator folder into your Unity project.

Features

  • Parses any component
  • Conditional start

Supproted animation types

  • Int
  • Long
  • Float
  • Double
  • Color
  • Vector2
  • Vector3
  • Bool

I will probably add more supported types later

Animation conditions

  • 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)

Creating animation

To create an animation you have to add a "WAnimator" component to any GameObject. After that you need to open the animation editor:

Alt Text

You will see a window where you can add and delete animations:

Alt Text

The animation element looks like this:

Alt Text

Here you must select the animation condition (OnTrigger condition must be called manually by using TriggerAnimations(string triggerName) method in WAnimator):

Alt Text

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:

Alt Text

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:

Alt Text

Also, used values will be highlighted in blue:

Alt Text

That's it!

P.S. I apologize for any mistake in my text, I am not a native English speaker.

About

Useful tool for creating tween animations, mainly targeted to UI.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages