By default, Events in Transitions use UnityEvent
s to define their callbacks. However, the system can be modified to use any other similar type of events. In particular, UltEvents have some significant advantages over UnityEvents so if you want to use them you can do the following:
- Import Animancer Pro and UltEvents into the same project.
Select the Assets/Plugins/Animancer/Animancer.asmdef and add a Reference to the
UltEvents
Assembly Definition.- Go into the Player Settings of your project and add
ANIMANCER_ULT_EVENTS
as a Scripting Define Symbol. Or you can simply edit theAnimancerEvent.Sequence.Serializable.cs
script to change the event type.
Note that the serialized data structure of UnityEvent
s and UltEvent
s is entirely different so swapping between them will cause all existing events to lose their data. If you can think of a better way to implement it so that both systems can be used separately, please use the contact options listed in the Help page.