doesn't support anim curve

I need non linear gamepad response, like a normal game so I’m doing this:

namespace UnityEngine.InputSystem.Processors
{
    [Scripting.Preserve]
    #if UNITY_EDITOR
    [UnityEditor.InitializeOnLoad]
    #endif
    public class CurveVector2Processor : InputProcessor<Vector2>
    {
        [Tooltip("Curve scale of X,Y")] public AnimationCurve x, y;
        public override Vector2 Process(Vector2 value, InputControl control) { return new Vector2(x.Evaluate(value.x), y.Evaluate(value.y)); }
        public override string ToString() { return $"CurveVector2"; }
        #if UNITY_EDITOR
        static CurveVector2Processor() { Initialize(); }
        #endif

        [RuntimeInitializeOnLoadMethod]
        static void Initialize() { InputSystem.RegisterProcessor<CurveVector2Processor>(); }
    }
}

but it’s bombing
ArgumentException: Don’t know how to convert PrimitiveValue to ‘Object’

7616593--946705--upload_2021-10-30_16-14-51.png

so yeah this “thing” doesn’t even support animcurves…

Hi, would you mind to create a bug report for this one? Thanks!
Seems like we need to drill a hole to make non-primitive values exposed with their inspectors.

1 Like

1377765
this took 2 seconds to land in my mailbox. what did you give fogbugz?!!