InputActionAsset - Schema/Device Binding - C# Generated Class

Can’t for the life of me work out how to bind in any way when using the InputActionAsset C# generated script.

I have gone into breakpoints inspecting all possible values, tried function that would seem to work but doesn’t. Like ChangeBinding…() functions. I have searched the documentation. Nothing seems clear, is it possible?

I tried the PlayerInput component, it’s way too unreliable. Throws random errors, and ignores InputAction rules set up in the UI. Like press, tap, etc.

Does anybody know?

Or if they have previously used something else from the asset store that is reliable.

1 Like

Managed to find the answer on this forum post. Tested and got wit working.

Input = new GameInput();
Input.bindingMask = InputBinding.MaskByGroup(Input.P1Scheme.name);
Input.Gameplay.Jump.started += Jump_started;
Input.Enable();
1 Like