Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

'Desyncing' multiple instances of Mecanim animations?

Discussion in 'Animation' started by bluescrn, Sep 27, 2013.

  1. bluescrn

    bluescrn

    Joined:
    Feb 25, 2013
    Posts:
    646
    If I spawn several Mecanim-controlled characters at the same time, and same state/speed, their walk anims are perfectly in sync. I want to avoid this, for a more natural look.

    Is there any way to programatically set the current playback time within an animation state, so I can make them start at a random point in their walk cycles?

    I suspect the answer is no, as that seems to be the answer to most questions about controlling Mecanim via script, sadly - but maybe I've missed something?

    (There's got to be a better option than excessive numbers of transitions and boolean parameters, something which is already giving me grief for characters that need to spawn in a number of different states...)