How to use for tools dev (Asset Store plugins)

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?

There’s the InputActionReference class. You can select the action you want in the inspector.

1 Like

How did I miss that? Thanks!