How to define ActionMappings in Plug-In

I am creating a new plugin. Is it possible to add ActionMappings from a plugin?

I created a Default<my_plugin>.ini in MyProject\Plugins\<my_plugin>\Config and added the following to it:

[/Script/Engine.InputSettings]
+ActionMappings=(ActionName="ActionButtonPrimary",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Gamepad_FaceButton_Bottom)
+ActionMappings=(ActionName="ActionButtonPrimary",bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Z)

But it does not appear to get registered.

My goal is that when someone installs the plug-in, they don’t need to set up any action mappings for their project; they will just come with the plug-in.

1 Like