Posted July 17, 2020 by Kybernetik
#sourcecode #Unity
This is a summary of the Animancer v5.0 Change log. The full list can be found at https://kybernetik.com.au/animancer/docs/changes/animancer-v5-0
AnimancerComponent.Play(object key)
methods to TryPlay
and changed them to throw exceptions if the key isn’t found instead of returning null
. Unlike the other Play
methods, those ones can only use existing states but not create new ones so this change ensures that they can’t be accidentally used when intending to use one of the other overloads and also prevents them from silently doing nothing if the key isn’t found.AnimancerPlayable.StateDictionary
indexers (animancer.States[...]
) now throw an exception if no state is registered with the specified key.transition.Events.Sequence...
you now only need transition.Events...
(the serialized sequence is accessible via transition.SerializedEvents
).