I am using key code, not unity input manager.
So how to check key down, up, hold, and axis in script?
  • If you're refering to getting Unity's input for a key code, check out Unity's scripting reference.

    As for ORK's input keys, you can get the input like this:
    bool button = ORK.InputKeys.Get(index).GetButton();
    float axis = ORK.InputKeys.Get(index).GetAxis();

    index is the ID/index of the input key.

    Since ORK's input keys define from which key event (down, hold, up) they receive input, there's no separate check for them.
    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!
  • Ok, get it.
Sign In or Register to comment.