2. Input and the Game Mode

In this step we will set up the input to control our character as well as set our default pawn which is the playable character.


Here we will set up the Input (Game Controls) to control the character and create a Game Mode which will use our character.

  1. Right-click in the Content Browser and create a new Blueprint Class of the Game Mode class and name it MyGame.

  2. Open the MyGame Blueprint, then click the Class Defaults button from the toolbar.


  3. In the Details panel under Classes, set the Default Pawn Class to use the MyCharacter Blueprint.


  4. Compile and Save then close the Blueprint.

  5. From the Main Editor Window, click Edit from the Menu Bar and select Project Settings.

  6. In Project Settings, click Input under the Engine section.

  7. Under Bindings, add four Action Mappings and four Axis Mappings.

  8. For the first two Axis Mappings, click the plus sign next to each one to add an additional mapping to the group.


    Your empty Bindings should look like above.

  9. Set up your Bindings similar to below (make sure to set the Scale for A, S, and Mouse Y to -1.0).


    Here we set inputs for Jump, Crouch, Jog, and Prone for the Action Mappings and MoveForward, MoveRight, Turn, and LookUp for the Axis Mappings. You can set these as shown or select your own inputs for each.

    For more details on this process, see How to Set Up Inputs in Blueprints for more information.

  10. Click the Maps & Modes option under the Project section of Project Settings.

  11. In Maps & Modes under Default Modes, set the Default GameMode to use the MyGame Game Mode.


    For more details on Game Modes, see Setting Up a Game Mode for more information.

  12. After setting both the Input and Game Mode settings, close the Project Settings Window.

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback