Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Play Walk Animation until the GameObject reaches a specific point

Discussion in 'Animation' started by Arionas_MC, Sep 9, 2019.

  1. Arionas_MC

    Arionas_MC

    Joined:
    Sep 2, 2019
    Posts:
    1
    (2d Project)
    Hello everyone,
    I have an Animator with 3 Animation States (below image):

    The problem is that I have a trigger that I activate when I want to go from the idle state to the walk state, therefore it covers a small distance "walking" and then it hovers over the area doing no animation, but I want my object to do the walk animation until it reaches a specific point(Vector3). The object moves with the Vector3.MoveTowards function.
    Thanks in advance :)
     
    akash246 likes this.
  2. akash246

    akash246

    Joined:
    May 8, 2020
    Posts:
    1
    I too want an answer for this
     
unityunity