Irrelevant Pixel
  • Introduction / Foreword
  • ↘️Integrating Menu into your game
    • Add to your project
    • Maps and Modes
    • Your Game Instance
    • Play in your Level
    • Turn ON Enhanced Input
    • Mouse functionality
    • Integration completed
  • Getting to know how to use it
    • Creating Page for Options
    • Selector
    • Slider
    • Toggle
    • Keybinder
      • Duplicating Keys
    • Stylizing Interactive Widgets
    • Save your Options
    • End of the Basic Usage Manual
  • Advancing into Internal Structure
    • Core Concepts
    • Page-related things
    • Aspect Ratios + Resolutions
    • Graphics 'Overall Quality'
    • Deeper into (C)Stylizing
    • deleting Dev.Tool
Powered by GitBook
On this page
  1. Integrating Menu into your game

Turn ON Enhanced Input

It is assumed that you already know what the "new" Enhanced Input System is in Unreal Engine. And you already have some Mapping Contexts and Actions implemented in your game.

Last updated 3 months ago

In this chapter we will not go advanced and deep into how to add all keybinds you want. Or explain how the mapping system in this Menu works. Instead, this chapter is rather serves the initial integration purpose, where we are getting basic things connected and working.


We begin from enabling crucial checkbox in Project Settings:

Once it's done, in Blueprints folder open BP_SaveGame_GameSettings, and in there expand category 'Controls' where you should see read-only variable (S)Contexts. Fill that array manually with all Input Mapping Contexts you use in your game:

Now open your PlayerController blueprint and remove all(if there any) Add Mapping Context nodes, and replace those with a single function from Global Function Library like so:

And after that, it is considered to be done.


Now you can go and tryout some of the Menu remapping functionality. If you have something in your game that you can name 'shoot', 'move forward' or 'jump':

In case you specified 'name' everywhere correctly but in Menu some Keybinder still not able to recognize such mapping - go and delete SaveGame file at projectname\Saved\SaveGames\GameSettingsSlot.sav (while game is not running obviously) and then it should work.

↘️
before
after
Specify 'name' inside Input Action
or override it directly inside Context