- Create a new Blueprint Blank Template Project in the Unreal Editor
- Save level currently open as "NewWorld"
- By Right-clicking within the Content Browser, create the following assets:
- Input > Input Action "IA"
- Input > Input Mapping Context "IMC"
- Blueprint Class > PlayerController "PC"
- Blueprint Class > Game Mode Base "GMB"
- In World Setting, set GameMode Override to GMB
- Open IMC
- Click the + next to "Mappings" in the detail panel
- Click the dropdown menu labeled "None" and select IA
- Expand the InputAction menu by clicking the arrow on the left hand side
- Click the dropdown labeled "None" next to the Keyboard icon then select "1" within the "Keyboard" section
- Open PC, wire as follows:
- Add "GetPlayerEnhancedInputLocalPlayerSubsystem" node
- Drag off from the node to add "Add Mapping Context" node
- Select IMC asset in the Mapping Context dropdown
- Right click and promote to Variable.
- Connect BeginPlay to Add Mapping Context Node
- Right-click and add EnhancedInputAction IA
- Untick Context Sensitive and add Map Key node
- Connect Started in IA to Map Key
- Connect IMC variable to Map Key Target
- Set Action in Map Key to IA
- Compile and Save.
- Open GMB
- In Details set Classes>Player Controller Class to PC. Compile and save.
- PIE & Press 1
- Exit PIE
Actual Result: A new Mapping is added to IMC, but no asterisk appears that indicates a savable change. Closing the Editor does not prompt the user to save changes, and IMC loses mapping upon reopening project.
Expected Result: User should be prompted to save changes in IMC when closing the editor.