I had to upgrade unity because of the security issue and wanted to use the 6000.2.7f2 version, but when I load my game in editor the input action seem to stop to work.
I’m not sure why but the only thing that works is my
public void OnJump(InputAction.CallbackContext context) Like my character jump in place and thats all.
I downgrade the unity version it works I upgrade unity it stops working
Tried version 1.14 and 1.15 of the input system package.
I saw somebody post this but it didnt work for me.
using UnityEngine;
using UnityEngine.InputSystem;
// Fix issue where input actions are not registered when domain reload is disabled
public static class EnableProjectWideInputActions
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
public static void OnSubsystemRegistration()
{
InputSystem.actions.Enable();
}
}
Anybody has a solution?
Is how I do it
public InputActionAsset inputActions; // Reference to the Input Action Asset
var playerActionMap = inputActions.FindActionMap("Player");
moveAction = playerActionMap.FindAction("Move");
moveAction.performed += OnMove;
moveAction.canceled += OnMoveCanceled;
moveAction.Enable();