Animator Events

ashkatchap

(14)
$19
Publisher ashkatchap
File size 445.80kB
Number of files 30
Latest version 2.5.11
Latest release date 2023-02-08 04:04:17
First release date 2020-06-08 02:34:12
Supported Unity versions 2018.4.2 or higher

Unity community forum thread

Manual



Tired of string-based events tied to animations? So were we! With this asset, you will be able to associate events with animator states for a smoother workflow, with several additional goodies.



With this asset you can easily set UnityEvents, give them a name and assign them to Animator States using a drop-down alongside the condition that must be met to execute them.



Not only can you execute UnityEvents, you can also set parameters of the Animator to make a more complex Controller.





The conditions that can be used in a State are:


- Every frame

- On State Enter, Transition Start

- On State Enter, Transition End

- On State Exit, Transition Start

- On State Exit, Transition End

- On Normalized Time Reached (optionally On State Exit too) + preview of the specific normalized time on the SceneView.

- Check the value of a parameter.

- Check the current layer index.

- Check the current layer weight.

- Combination of more conditions.



When the conditions are met you can:


- Execute UnityEvents set beforehand.

- Execute UnityEvents set directly on the Animator state (shown inlined).

- Set a parameter to a new value or perform an operation on it (+, -, *, /, %, Maximum, Minimum).

- Call SendMessage.



With this asset you will be able to make States execute events easily plus drive logic by setting parameters, opening new doors to what you can do with the Animator.


This asset is ideal if you want the Animator to be in control of the logic instead of slave of a script.


Top Publisher Assets