Modifying parameters of interactions during runtime?

Hi,

I would like to know if it is possible to reassign certain parameters of an interaction that is created via PlayerInput component during runtime. For example, the duration of a Hold interaction. More specific use case would be weapons with different charge time, therefore if I use Slow Tap interaction I should change the duration according to the weapon being held…

I could figure out a detour, by using Press interaction and some timers. But if runtime modification of parameters can be achieved, it would make life a lot easier… especially when I actually have multiple interactions stacking together…

Sorry to bump an old post but did you ever figure this one out? The only examples I can find online are of creating a new action which is something I don’t want to do.

Currently the best way is to use the InputActionRebindingExtensions.ApplyBindingOverride method. Something like this should work:

inputAction.ApplyBindingOverride(new InputBinding
        {
            overrideInteractions = "slowTap(duration=1.2,pressPoint=0.123)"
        })