I've been struggling with this for a bit.

Would anyone be kind enough to show me an example script with the bool and how its entered in the Base/Controls ->Input Keys->Key Settings?
  • E.g.:
    public static class CustomInput
    public static bool GetButton()
    return false;

    public static float GetAxis()
    return 0;

    Naturally, you need to return your custom input values instead of just false/0 in those functions.

    In the input key's setup:
    - set Input Origin to Custom
    - set Class Name to CustomInput (i.e. the name of the class)
    - set the button function name to GetButton
    - set the axis function name to GetAxis
    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.