hash does not exist error

so i’m getting this error “hash [number] does not exist”. i’m using the stringtohash method of animating my walk sequences, found here: Unity Connect

originally, i had no problem with the hashes. then i redid all my animations, and renamed everything including the ints holding the hash values, and that’s when i started getting this error. only with some of the animations though, for example walk left works fine but walk right gives the error.

after i redid my animations, i reset everything i could think of and rebuilt the solution in Visual Studio, but no luck.

i am sure that the names i use in code and those in the animator are the same, so that’s not the problem. i don’t know of any other way to animate my characters, so i’m stuck until this is resolved. :frowning:

The problem you are facing comes from a misunderstanding. SetTrigger looks for animation parameters not for the animation itself. So you should set up a parameter which invokes a specific animation and then access it via hashcode, trigger it and then you’ll see your animation being played.