Hi - loving the ORK Framework so far, awesome work!

I have Mechanim animations set up for a 2D prefab, and about half of them work out of the box using your Mechanim tutorial. Specifically, Attack and Defend seem to throw some "Parameter: Hash does not exist" errors when they should be triggered. Since *some* of the animations work, I'm guessing ORK is interacting correctly with my Animator component so that's good, but I'm a bit baffled about the others.

I've double checked the state names, and that the parameters are lowercase "attack" and "defend", in both the Animation Controller and in ORK's animation settings. Any idea what the issue could be? Hopefully something simple I missed :)
  • Hm, please check the spelling of the parameters again - beside being case sensitive, also check if they maybe have a space added or something like that. The error/warning you get hints at the parameter name not matching in ORK and the animator.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • (I should mention I'm using the trial version right now)

    There are definitely no spaces, and the spelling/case seems okay. Here are the inspector and the Animation settings from ORK for the Attack state:

    image

    image


    If I tick the triggers while the game is running, the animations fire, so yeah. I'm guessing ORK can't find these parameters somehow... so weird.
  • Hm, do you have multiple layers in your animator?
    You could try adding the layer name to the parameter name, e.g. "Base Layer.attack".
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited February 2019
    No, I don't have multiple layers, and adding the layer name didn't do anything.

    I noticed this when I tried triggering the animator through a script, which can be done with either a string or an int parameter. The string value "attack" triggered the animation, but the error message I was getting from ORK seems to be reading it as an int?

    image

    I should have added the full error message from the start, sorry. The long int values are consistent (i.e., this specific number is always the non-working "attack" parameter).
    Post edited by harucat on
  • Hm, yeah ... strange. ORK uses Unity's functionality (as stated by their own tutorials/documentation) to generate the hash key for the parameter name, mostly because it's a bit better performance wise.

    I'll make using the hash key optional in the next update, that should solve this issue :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.