… like for example get a list of each action with its related bindings.
I haven’t found anything helpful in the documentation about that.
… like for example get a list of each action with its related bindings.
I haven’t found anything helpful in the documentation about that.
Also a way to rebind at run time with this structure in place, again without using a helper class.
You probably want to use ActionMaps instead of the InputActionAsset directly.
But if you want to go through all of the actions in an InputActionAsset then this is your friend.
Just throw a [SerializeField] private InputActionAsset _actionAsset; in your code, drag and drop the asset in the editor and you can use it as an InputActionAsset object.
I wrote this in connection with ActionMaps.