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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help with Animation

Discussion in 'Animation' started by Deleted User, Jun 8, 2015.

  1. Deleted User

    Deleted User

    Guest

    Hi all.

    when I click on a button, I set my anim param to true to make an animation, but I want that when the animation is over, this param becomes false to get back to the idle state. I can't use waitforseconds, because i need to click the same button more times, and I want the animation to always start again when this button is clicked.

    can anyone help me please. thx.
     
  2. Safalya

    Safalya

    Joined:
    Mar 16, 2015
    Posts:
    11
    Are you using mecanim?
     
  3. Deleted User

    Deleted User

    Guest

    already solved. thanks anyway. I just set true when click and false in other method.
     
  4. Safalya

    Safalya

    Joined:
    Mar 16, 2015
    Posts:
    11
    You're welcome.
     
  5. Safalya

    Safalya

    Joined:
    Mar 16, 2015
    Posts:
    11
    You're welcome