More Pages:

../images/architecture/2023/ui32/thumbs/01.jpg
UI3 Overview
../images/architecture/2021/ui3-start/thumbs/02.jpg
UI3 Get Started
../images/architecture/2023/ui3_data/thumbs/02.jpg
UI3 Settings
../images/architecture/2023/ui3_design/thumbs/01.jpg
UI3 Design
../images/architecture/2023/ui3-custom/thumbs/01.jpg
UI3 Preview Ft.
../images/architecture/2021/ui3-var/thumbs/01.jpg
UI3 Edit & Info
../images/architecture/2024/ui3-connect/thumbs/01.jpg
UI3 Connect
../images/architecture/2021/ui3-actors/thumbs/02.jpg
UI3 Other BPs
../images/architecture/2021/ui3-game/thumbs/07.jpg
UI3 Input Controls
../images/architecture/2024/ui3-vr/thumbs/03.jpg
UI3 VR projects
../images/architecture/2021/ui3-faq/thumbs/01.jpg
UI3 FAQ
../images/architecture/2023/ui3_faq/thumbs/01.jpg
UI3 Bugs
../images/architecture/2023/ui3_history/thumbs/01.jpg
UI3 Versions

UI3 Input Controls / Game Modes

The Game Mode defines the type of game for the project. How to control it and what type of UI is used.

Some of the content here may be slightly different between versions.

Content:

World Settings

Multiple Input Controls

Game Mode Keyboard

Game Mode Touch

Game Mode Gamepad

Game Mode VR

Input settings for other controllers.

World Settings

The Game Mode in Unreal defines which Character (Pawn) and Input Controller will be used in your project.

The Game Mode can be set in the World Properties. Each (persistent) level has its own World Properties. If you only have one level then this is the persistent level. You can have multiple Game Modes in the same Project.

There are 4 Game Modes to choose from:

  • SDotUI3_GameModeKeyboard for keyboard and mouse support
  • SDotUI3_GameModeTouch for touch controls
  • SDotUI3_GameModeGamepad for XBOX Gamepad support
  • SDotUI3_GameModeVR for VR headsets with a controller or gamepad.

image

Multiple Input Controls

You may want to use your project for keyboard and mouse and for a VR headset. You can do this by creating multiple persistent levels as it is the case in the demo project. Set the game mode in the world properties of the persistent level accordingly.

The persistent level only contains the Info Map blueprint, a player start and some components that may be necessary for the specific game mode.

All assets are split into sub levels, like for Building or Furniture. These levels are then added to the persistent levels as sub levels. All persistent levels use the same sub levels and changes to the sub level are applied to all versions of your project.

image

Game Mode Keyboard

SDotUI3_GameModeKeyboard

This is the Game Mode for keyboard and mouse controls. It uses

  • SDotUI3_CharacterV3
  • SDotUI3_ControllerKeyMouse. The controller blueprint contains all the nodes to navigate the menu.

The game mode contains a node from the OpenXR plugin to disable the VR headset.

image
This image shows the input controls for Keyboard and Mouse. The Player can use the WASD keys to move around and the Mouse to look around, or to select an item in the scene and interface.

The Info Map will work without changes with this game mode.

image

Game Mode Touch

SDotUI3_GameModeTouch

Use this Game Mode for touch screen devices. Also use it if you want to Pixel Stream onto a touch screen device. It uses

  • SDotUI3_CharacterV3
  • SDotUI3_ControllerTouch. The controller blueprint contains all the nodes to navigate the menu.

The game mode contains a node from the OpenXR plugin to disable the VR headset.

Touch can be simulated during development with Project Settings -> Input -> Use Mouse For Touch. Note that this will block the Mouse input from working in the keyboard mouse game mode.

image
Project Settings -> Input - > Mouse Properties
Use Mouse for Touch Allows you to use the mouse to simulate touch controls. Turn off after use as it blocks the mouse from working correctly.

Settings in the Info Map blueprint:

Info Map -> Project Settings
Use Mouse Move Will be enabled automatically
UI Design
Button Text Size Main menu button size:
20 - increase the size from the default
Scene Presets
> advanced display
Save Slot Size 80 x 80 - Increase the size for touch screen controls
Floorplan
> advanced display
Dot Size 32 - Increase the size of the marker
Info and Help
> About Project and Help The control scheme is used as the first Info Media
Help Image Use the image that shows the touch control scheme from the Tex folder
In previous versions the help image was set as index [0] of the Info Media Array.

image

Game Mode Gamepad

SDotUI3_GameModeGamepad

Use this Game Mode with the XBox gamepad controller or any other compatible controller. It also supports the VIVE and Oculus/Quest controller. Find some more info for the use of other controllers at the end of the page.

This Game Mode uses the

  • SDotUI3_CharacterV3
  • SDotUI3_ControllerGamepad. The controller blueprint contains all the nodes to navigate the menu.

The game mode contains a node from the OpenXR plugin to disable the VR headset.

image

Settings in the Info Map blueprint:

Project Settings
Use Mouse Move If true a target circle will be displayed on the floor. Once the move button (depends on the controller used) is clicked the player will slide to the circles position.
UI Design
> advanced display
Icon A Lets you replace the default gamepad face button down icon. This is used to select menu items (like enter).
Icon B Lets you replace the default gamepad face button right icon. This is used to toggle the menu visibility and move sliders to the right.
Icon X Lets you replace the default gamepad face button left icon. This is used to cancel and move sliders to the left.
Info and Help
Info Media > 0 By default the control scheme is used as the first Info Media
Image Replace the current image with the image that shows the control scheme of the connected controller. There are images for Gamepad, VIVE and Oculus Rift controller available.

How to use a different controller with the user interface is explained at the end of this page.

image
You can simulate the controller buttons on the keyboard as seen in the image.

image

Game Mode VR

SDotUI3_GameModeVR

Use this Game Mode for VR scenes. It enables the 3D interface on the virtual tablet. It uses

  • SDotUI3_CharacterV3
  • SDotUI3_ControllerGamepad. This is the same as described in the GameModeGamepad

Follow the link below to read more about the VR mode.

Using VR with UI3

image

Input settings for other controllers.

You can use other controllers if they are generally supported in Unreal. You may have to activate them through a plug-in or they may become available once they are connected.

Once they work you have to add their buttons to the input controls in the Project Settings. Open the settings and navigate to Input by clicking on the link on the left side. Then add your controller buttons to the Bindings. This should be somewhat self explanatory.

Action Mappings are button clicks like ENTER, or shortcuts like I for a screenshot.

Axis Mappings are movement controls like player movement forward or mouse looking to the side. Anything that isn't a simple click.

Detailed information is on the Unreal Engine Documentation about Input.

Unreal Engine Documentation - Input

image
Top of page