Search Unity

animation start time

Discussion in 'Animation' started by kozle, Sep 15, 2017.

  1. kozle

    kozle

    Joined:
    Aug 6, 2015
    Posts:
    46
    Hey hey.

    I'm using Mechanim as my state machine.
    When i'm in certain state, an animation starts. I would like this animation to start at random time.
    How could I do this?
    I have a StateMachineBehaviour derived script attached to this state. Could I set the play start time there?

    thanks