animancer
animancer copied to clipboard
Mixer Transitions show a toggle on their child speeds when they shouldn't
Environment
- Animancer Version Number: v7.4.2
- Animancer Pro or Lite: Both
- Unity Version: Any
- Platform: Any
Description
These toggles below the Speed header shouldn't be there.

Reproduction
- Make a mixer transition field.
- Add some animations to it.
- Change one of their speeds.
- Make sure your Inspector is wide enough to not have the toggles off the side of the screen.
Fix
- Open ManualMixerTransitionAsset.cs.
- Go to the
_Speeds
field (not_Speed
). - Mark the
[AnimationSpeed]
attribute just above it as optional:
#if UNITY_EDITOR
[AnimationSpeed(IsOptional = false)]
#endif
A little gotcha -- IsOptional doesn't exist at build-time, so I had to wrap the attribute in an #if UNITY_EDITOR
to make my builds work!
Thanks for letting me know, I've edited the OP.