I’m trying to figure out how to make generic tools, like plugins or just company shared utils, compatible with the new Input System.
How can we let the end user choose which InputAction to use for an action?
The only way I see is:
[SerializeField] InputActionAsset actionAsset;
[SerializeField] string actionMapName;
[SerializeField] string actionName;
void Awake()
{
actionAsset.FindActionMap(actionMapName).FindAction(actionName).performed += PerformAction;
}
Is there a better way?