Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Animation Lags When I Play

Discussion in 'Getting Started' started by TanmaySOLO, Oct 9, 2019.

  1. TanmaySOLO

    TanmaySOLO

    Joined:
    Sep 6, 2019
    Posts:
    4
    I have been trying to figure out what i have done wrong, when my character moves for example if i press "w" the character should move forward, which it does but it has this weird jiggle/laggy behaviour which i don't know why. I have been trying to find a solution cause the animation in maya is okay.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      1 MB
      Views:
      15
    • 1.png
      1.png
      File size:
      161.3 KB
      Views:
      13
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,449
    It is probably because you are also playing Idle many times a second, likely not what you want. You could remove the final Else statement or rethink your logic. You can place Debug.Log statements in your code which will show in the Console window to show what code is executing. Instead of putting that code in an Update() method, try first with just a button click.
     
    TanmaySOLO likes this.
  3. TanmaySOLO

    TanmaySOLO

    Joined:
    Sep 6, 2019
    Posts:
    4
    Tried but no luck :(
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,449
    Yes that might be expected if you made a mistake. Please show your updated code.