Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

State Machine in Mecanim Animation frame by frame

Discussion in 'Animation' started by liszto, Sep 19, 2013.

  1. liszto

    liszto

    Joined:
    Dec 22, 2011
    Posts:
    135
    Hi,
    there is a way to play the time of each state or the animation of each state frame by frame. By this I mean I want allow my player to manage his state tree with mouse for example.
    In that way, if the mouse move to the right the animation is ready and change of state to the next one (accordingly to the blend define between 2 states.). If the mouse move to the left, the animation is read in the other direction and if the mouse stop the animation movement stop too.

    If it's not possible with the current Mecanim mechanic there is another way to do it ?

    Use AnimationState class and manage each blend between each animation by myself ?