Released 2021-04-13
See the Animancer v6.0 Upgrade Guide if you're upgrading from a version older than that.
Features
- Added
SpriteEditor
to allow Sprites to be edited directly in the Inspector. - Added Pack Textures tool for combining multiple textures into a single
Sprite
sheet. - Added
AnimancerState.AutomaticallyClearEvents
to control whether events are Automatically Cleared or not. - Added
SpriteRendererTextureSwap
script for changing the texture used bySprite
s at runtime without needing to actually define the sameSprite
s on every texture and make animations for them. - Added
ClipTransitionSequence
which is aClipTransition
that also contains an array of otherClipTransition
s which will be played in order after the first one. - Added support for negative values in
LinearMixerState
speed extrapolation when the lowest threshold is negative.
Changes
- Animancer Tools:
- Changed the
GenerateSpriteAnimations
tool to trim numbers first then other characters (space, dash, underscore) from the end rather than doing them all at once when determining the shared names. - Changed
RenameSprites
to include zeroes at the start of low numbers to ensure that they have the same number of digits as the later names. - While a panel is open, other panels are now hidden.
- Changed the
- Renamed
AnimancerState.EventRunner
toEventDispatcher
. - The
Toggle Looping
andToggle Legacy
context menu functions are now disabled if the asset is read-only.
Improvements
StateBehaviour.OnEnterState
now forces the Inspector to repaint since Unity doesn't do it automatically if all the components are collapsed.- Added
OptionalWarning.UnsupportedSpeed
. - Added
Frame Rate
field to theGenerateSpriteAnimations
tool. - Optimised
LinearMixerState.ExtrepolateSpeed
to do nothing if the setter doesn't change the value. - Added
AnimancerGUI.LoadIcon
to load icons without causing error messages if they are missing (unlikeEditorGUIUtility.IconContent
). - Added
LazyStack
to simplify Inspector context management. - Added
DrawAfterEventsAttribute
which can be placed on a transition field to draw that field after theEvents
timeline rather than always putting theEvents
last. - Changed
RenameSprites
to start the numbering at 1 instead of 0. - Right Clicking on the Transition Preview button in the Inspector can now show the transition's context menu functions (such as those added by Inspector Gadgets). Previously, the way
ClipTransition
s draw theirAnimationClip
field on their first line meant that there wasn't actually anywhere to access the context menu of the transition itself (rather than its individual fields).
Fixes
- Fixed
AnimancerLayer.GetOrCreateWeightlessState
to allow the original state key to not be itsAnimationClip
. - Fixed
ManualMixerTransition.GatherAnimationClips
to work properly. - Fixed
SpriteModifierPanel.AskAndApply
to correctly check the sprite height is within the texture. - Fixed various
AnimancerPlayable.StateDictionary
methods to not throw exceptions if thekey
parameter is null. - Fixed
TimeRuler
and transition labels to be correctly indented whenEditorGUIUtility.hierarchyMode
is false. - Fixed the Serialized Array Initialization bug properly.
- Fixed
AnimancerPlayable
to support recursive graph evaluation. - Fixed
TransitionDrawer
andEventSequenceDrawer
to support nested transition fields.