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

What is the difference between an in script state machine and an animator one to handle animations?

Discussion in 'Animation' started by MasterElement, Apr 18, 2022.

  1. MasterElement


    Jun 13, 2016
    So a few months ago I tried to make a state machine in a script to handle animations. Basically the animator had a integer parameter that changed number value based on what state the machine was in. I saw it in a tutorial, and it worked until I made the Idle, walking, and running animations on one blend tree compared to individual transitions. Needless to say it screwed everything up. Animations transitions jittered and all kinds of problems.
    So to day I was pondering how else I could code it when I notice you can do a State machine state in the animator itself.
    Now I am curious if I used the state machine in the animator itself would that work better then using one in a script with an integer that is affected by the state of the script state machine and uses regular animation states?