Released 2021-04-13
See the Animancer v6.0 Upgrade Guide if you're upgrading from a version older than that.
Features
- Added
SpriteEditorto allow Sprites to be edited directly in the Inspector. - Added Pack Textures tool for combining multiple textures into a single
Spritesheet. - Added
AnimancerState.AutomaticallyClearEventsto control whether events are Automatically Cleared or not. - Added
SpriteRendererTextureSwapscript for changing the texture used bySprites at runtime without needing to actually define the sameSprites on every texture and make animations for them. - Added
ClipTransitionSequencewhich is aClipTransitionthat also contains an array of otherClipTransitions which will be played in order after the first one. - Added support for negative values in
LinearMixerStatespeed extrapolation when the lowest threshold is negative.
Changes
- Animancer Tools:
- Changed the
GenerateSpriteAnimationstool 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
RenameSpritesto 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.EventRunnertoEventDispatcher. - The
Toggle LoopingandToggle Legacycontext menu functions are now disabled if the asset is read-only.
Improvements
StateBehaviour.OnEnterStatenow forces the Inspector to repaint since Unity doesn't do it automatically if all the components are collapsed.- Added
OptionalWarning.UnsupportedSpeed. - Added
Frame Ratefield to theGenerateSpriteAnimationstool. - Optimised
LinearMixerState.ExtrepolateSpeedto do nothing if the setter doesn't change the value. - Added
AnimancerGUI.LoadIconto load icons without causing error messages if they are missing (unlikeEditorGUIUtility.IconContent). - Added
LazyStackto simplify Inspector context management. - Added
DrawAfterEventsAttributewhich can be placed on a transition field to draw that field after theEventstimeline rather than always putting theEventslast. - Changed
RenameSpritesto 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
ClipTransitions draw theirAnimationClipfield 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.GetOrCreateWeightlessStateto allow the original state key to not be itsAnimationClip. - Fixed
ManualMixerTransition.GatherAnimationClipsto work properly. - Fixed
SpriteModifierPanel.AskAndApplyto correctly check the sprite height is within the texture. - Fixed various
AnimancerPlayable.StateDictionarymethods to not throw exceptions if thekeyparameter is null. - Fixed
TimeRulerand transition labels to be correctly indented whenEditorGUIUtility.hierarchyModeis false. - Fixed the Serialized Array Initialization bug properly.
- Fixed
AnimancerPlayableto support recursive graph evaluation. - Fixed
TransitionDrawerandEventSequenceDrawerto support nested transition fields.