Search Unity

MAY 22 - mecanim manual tick while in editor mode

Discussion in 'Animation' started by arbelos, May 22, 2014.

  1. arbelos

    arbelos

    Joined:
    Sep 27, 2012
    Posts:
    16
    Hello!

    I am trying to write a tool that does the following. I have a mecanim driven generic rig character. At runtime I run my character through 2,3 animations sampled at a specific rate by manually incrementing animator.ForceStateNormalizedTime(). Because this happens "ingame" and not "ineditor" his animator component happily updates.

    How can I manually update my animator component while in editor. It seems that animator.ForceStateNormalizedTime() has no effect by itself. Is there an equivalent to [ExecuteInEditMode] for the animator component?

    Thanks
    David