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

Animation keeps resetting partway in

Discussion in 'Animation' started by Raelin_, Nov 26, 2015.

  1. Raelin_

    Raelin_

    Joined:
    Jul 16, 2014
    Posts:
    20
    Im having trouble with my characters animations, the animation keep restarting partway in. the way my players movement is handled is the script will check the fixedupdate for the keys being pressed, and if they are it will set walking to true, im pretty sure the animation is getting reset whenver the Bool is being set true each time, just a guess. does anyone know how to fix this? thanks in advance.
     
    krajator likes this.
  2. HaydarLion

    HaydarLion

    Joined:
    Sep 17, 2014
    Posts:
    62
    I'm having the same issue in a 2D project in which i'm setting the bool in the fixed update function. I tried doing it only if it "animator.getbool" returned false, but that didn't solve the issue. Someone please help me out with this. Thanks.

    Update: Some more testing showed that the problem may be originating from the fact that I'm transitions from the any state block. That means it's jumping from itself back to itself because the conditions are true and it's in "any state". How can it work that it only transitions from any state except itself?
     
    Last edited: Jan 9, 2016
    Cosmology27 and krajator like this.
  3. Shamantiks

    Shamantiks

    Joined:
    Mar 11, 2022
    Posts:
    10
    Bullseye! This is my issue, it was caused by starting from Any State, and keeps triggering over and over, I thought it was my bool. I am avoiding Any State for now. Animations are really tricky!!
     
  4. jarahbe32

    jarahbe32

    Joined:
    Mar 11, 2022
    Posts:
    1
    which application need for making animatio