Search Unity

Question End of Animation

Discussion in 'Animation' started by glgamesforfun, Jul 20, 2021.

  1. glgamesforfun

    glgamesforfun

    Joined:
    Apr 13, 2021
    Posts:
    149
    Hello,
    I have an animation that runs in a loop and when the animation would end (it's in a loop), a value (float) should be increased. How can I change the value in the code after the animation?
    Thanks for your help in advance.
     
    Last edited: Jul 20, 2021
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,570
    Put an Animation Event at the end of the animation.
     
  3. glgamesforfun

    glgamesforfun

    Joined:
    Apr 13, 2021
    Posts:
    149
    Ok thanks.