In this tutorial we’ll set up general menu settings.
This tutorial is part 3 of a mini-series covering menu screens. You can find the start of this series here.
Before setting up our menu screens, we’ll handle a few settings related to our menus. We’ll set up:
- 3 new input keys (call menu, next and previous for menu user changes)
- exit game question
- background UI layer
- combatant selection
- combatant button layout
- general settings of menu screens
Some of these might already be set up in your project, depending on which tutorials you’ve followed already. In that case, you can skip the setup of those parts.
This tutorial is based on the ORK 4 Unity Quickstart 3D tutorials, but can be used in any project.
Input Keys #
We’ll start with setting up the input keys.
Open the ORK editor and navigate to Controls > Input Keys, we’ll add 3 new inputs.
In case you’ve followed the gamepad controls and combined input tutorials, you can also set up combined inputs for these keys using Input Key input origin, adding a keyboard and gamepad input.
Menu #
This input key will be used to open our main menu screen.
If you’ve followed the quickstart 3D tutorials, you’ll already have this input key and can skip this setup.
- Name
Set to: Menu
Input ID Setting 0 #
- Input Origin
Select: Keyboard Key (Input System) - Positive Key
Select: F1 - Input Handling
Select: Down
Next #
This input key will be used to change to the next tab or combatant in our menu screens.
- Name
Set to: Next
Input ID Setting 0 #
- Input Origin
Select: Keyboard Key (Input System) - Positive Key
Select: E
For a combined key setup, use E keyboard key and Right Shoulder gamepad button
Previous #
This input key will be used to change to the previous tab or combatant in our menu screens.
- Name
Set to: Previous
Input ID Setting 0 #
- Input Origin
Select: Keyboard Key (Input System) - Positive Key
Select: Q
For a combined key setup, use Q keyboard key and Left Shoulder gamepad button
UI Box General Settings #
We need to set up our Next and Previous keys to be used for tab navigation.
Navigate to UI > UI Boxes and select the General Settings.
Default Controls > Tab Settings #
- Loop
Enable - Next Tab Key
Select: Next - Previous Tab Key
Select: Previous
Default Audio Settings #
In case you haven’t set up an audio asset for tab changes:
- Tab Change
Select: switch37
Exit Game Question #
The exit game question can be displayed when exiting the game, e.g. via our main menu.
If you’ve followed the quickstart 3D tutorials, you’ll already have the exit game question set up and can skip this part.
Navigate to Gameplay > Game Settings and change the following settings.
Exit Game Question #
- UI Box
Select: Blue Center - Text (Message Content)
Set to: Exit to the start menu? - Use Choice
Enable
This’ll show input buttons instead of using the ok/cancel buttons of the UI box.
We can keep the default yes/no button setup, i.e. yes button showing Yes and no button showing No.
Background UI Layer #
We’ll add a new UI layer to display our background above the flying texts, but below the UI boxes of layer 1.
If you’ve followed the quickstart 3D tutorials, you’ll already have this UI layer set up and can skip this part.
Navigate to UI > UI Layers and add a new layer.
- Name
Set to: Background
Move the layer between 0: Flying Texts and 1: Layer 1.
Combatant Selection #
Combatant selections can be used to select targets for abilities and items in menu screens – we’ll e.g. use this in ability and inventory menus.
Even if you’ve followed the quickstart 3D tutorials, we’ll make a few changes to the setup, so please follow this part.
Navigate to Menus > Combatant Selections, we’ll change the Default combatant selection.
Base Settings #
- UI Box
Select: Blue Menu Center Scroll - Only Battle Group
Disable - Battle Sorted
Enable - Remember Selection
Enable - Add Back Button
Select: Last
This’ll add a back button as the last input.
Combatant Button Layout #
The combatant button layout defines how input buttons to select combatants are styled – e.g. when used in a combatant selection or battle menu.
Navigate to Texts > Text Settings, we’ll define the default layout here. Other menus can optionally override the default layout.
Combatant Button Layout #
- Custom Input Prefab
Select: Empty Button - Content Type
Select: None
We’ll use a HUD instead. - HUD Type
Select: HUD - HUD
Select: Template: Combatant Information.
Now, our combatant selection and target selection (battle menu) will use our HUD template to show information about the combatant.
You can use the bestiary feature to obscure enemy information (e.g. not showing HP/MP values) unless we learned that information using an ability, item or schematic to add an enemy’s status information to the bestiary.
Menu Screen General Settings #
Navigate to Menus > Menu Screens and select the General Settings.
General Backgrounds #
General backgrounds are displayed in all menu screens (unless they’re disabled by them). Unlike the Default Backgrounds (or individual backgrounds of menu screens), the general backgrounds will also stay on screen when transitioning between menus, as the other backgrounds are opened and closed with each menu screen.
If you’ve followed the quickstart 3D tutorials, this will already be set up. In that case, please only change the Prefab setting to use the Menu Full Background prefab we’ve created earlier.
Click on Add General Background.
- UI Layer
Select: Background - Prefab
Select: Menu Full Background
Backgrounds can also use schematics to animate opening/closing them, just like UI boxes, HUDs or flying texts.
I’m using the simple fade in and fade out schematics from the UI animations schematics to animate this UI box.
- Open Schematic
Select: UIFadeIn - Wait
Enable - Close Schematic
Select: UIFadeOut - Wait
Enable
Save Changes #
And that’s it!
Don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.
The next part of the menus mini-series will set up the main menu screen.

