Search Unity

Change motion of the animator state

Discussion in 'Scripting' started by Dextozz, May 20, 2019.

  1. Dextozz

    Dextozz

    Joined:
    Apr 8, 2018
    Posts:
    493
    I have many animations in my project for a single character. Instead of creating dozens of clips with different motions each, is it possible to simply switch the motion of the animator state without creating new ones?

    Take a look at the image below. I would simply want to change the "AnimationClip1" with "AnimationClip2" through a script.
    upload_2019-5-20_16-24-9.png
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    SindriStudios and Dextozz like this.