Search Unity

  1. Unity 2020.2 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

Parameter 'Hash -823668238' does not exist.

Discussion in 'Animation' started by Strong9282, Mar 26, 2015.

  1. Strong9282

    Strong9282

    Joined:
    Nov 6, 2014
    Posts:
    3
    I was working on the Stealth project and when I try to play the game I get this error.

    Parameter 'Hash -823668238' does not exist.
    UnityEngine.Animator:SetFloat(Int32, Single, Single, Single)
    AnimatorSetup:Setup(Single, Single) (at Assets/Strong_Ryan_Lab4/Assets/Scripts/Strong_Ryan_Scripts/AnimatorSetup.cs:23)
    EnemyAnimation:NavAnimSetup() (at Assets/Strong_Ryan_Lab4/Assets/Scripts/Strong_Ryan_Scripts/Enemy/EnemyAnimation.cs:65)
    EnemyAnimation:Update() (at Assets/Strong_Ryan_Lab4/Assets/Scripts/Strong_Ryan_Scripts/Enemy/EnemyAnimation.cs:32)


    Here are my lines of code for the above referenced error.

    anim.SetFloat (hash.speedFloat, speed, speedDampTime, Time.deltaTime); This is line 23 of AnimatorSetup.

    animSetup.Setup (speed, angle); Line 65

    NavAnimSetup (); Line 32.


    I am not sure what it is that is wrong, any help would be greatly appreciated.
     
  2. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,672
    SannanYasin and Strong9282 like this.
  3. Strong9282

    Strong9282

    Joined:
    Nov 6, 2014
    Posts:
    3
    Thank you that helped me fix that issue, now to just figure out why the second error.
     
  4. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,672
    What is the second error?
     
  5. Strong9282

    Strong9282

    Joined:
    Nov 6, 2014
    Posts:
    3
    The second error was the same as the first but for angle instead of speed, I was able to fix that as well.
     
  6. SannanYasin

    SannanYasin

    Joined:
    Jun 10, 2020
    Posts:
    1
    OOOOMMMMGGGG thank you so so much you are a genius that fixed my problem
     
unityunity