Create a new input action in C++

Hi,

I’m trying to create an editor utility widget that would allow designers to create new assets in a simple way.

Theses assets are pawns and on top of creating them, the script should also create a new input action, update a related mapping context with that input action and bind that input action to a function that will receive an integer that is the index of the newly created pawn. So that when that new created input action is called, the designated pawn is possessed if that pawn is valid in the world.

I’ve seen snippets in order to create a new asset and update the asset registry but I have more doubts on the rest or if it’s even possible to do.

Thanks