ORK 4 RPG Framework Logo
  • ORK 4 GUIDE
    • Documentation
    • Tutorials
    • Extensions
    • API
  • ORK 3 GUIDE
    • Documentation
    • Tutorials
    • API
  • Support
  • Forum
  • Get ORK

ORK 4 Documentation

  • Getting Started
    • Welcome
    • First Steps (Unity)
  • Features
    • The Status System
    • Schematics
    • Schematic Nodes
    • Dialogue Importer
    • Variables
    • Selected Data
  • Components
    • Battle Components
    • Combatant Components
    • Control Components
    • Cursor Prefab Components
    • Game Starters
    • Interactable Components
    • Move AI Components
    • Scene Setup Components
  • Editor
    • The ORK 4 Editor
    • Sections & Sub-Sections
    • Node Editor
    • Schematic Editor
    • Asset Sources
    • Unity Overlay Toolbar
  • Section: System
    • System Settings
    • Languages
    • Organizer Types
    • Game States & Conditions
    • General Condition Templates
    • Object Pools
    • Prefab Savers
    • Scene Connections
  • Section: Controls
    • Game Controls
    • Interaction Settings
    • Player Controls
    • Camera Controls
    • Input Keys
    • Control Maps
    • Camera Positions
    • Battle Camera
  • Section: Gameplay
    • Game Settings
    • Formulas
    • Difficulties
    • Shortcut Slots & Settings
    • Custom Settings & Global Custom Settings
    • Global Machines
    • Machine Templates
  • Section: Status
    • Status Values
    • Status Effects
    • Attack Modifiers
    • Defence Modifiers
    • Abilities & Ability Developments
    • Status Developments
    • Research Trees
    • Damage Types
    • Status Bonuses & Templates
    • Status Condition Templates
  • Section: Inventory
    • Inventory Settings
    • Inventory Containers
    • Currencies
    • Items
    • AI Rulesets
    • Crafting Recipes
    • Equipment Slots & Slot Set Templates
    • Equipment & Available Equipment Templates
    • Shops
    • Loot
  • Section: Combatants
    • Combatants
    • Combatant Groups
    • Class Slots
    • Classes
    • Factions & Faction Benefits
    • Animations
    • Move AIs
    • Formations
    • Action Combos
  • Section: Battles
    • Battle Systems
    • Turn Based Battles
    • Active Time Battles
    • Real Time Battles
    • Phase Battles
    • Battle Spots
    • Battle AIs
    • Battle Actions Settings
    • Special Commands Settings
    • Target Settings
    • Target Selection Templates
    • Battle Range Templates
    • Battle Grid Settings
    • Battle Grid Highlights
    • Battle Grid Cell Types
    • Battle Grid Formations
  • Section: Content
    • Content Types
    • Music
    • Sound Templates
    • Areas
    • Teleports
    • Quests & Quest Tasks
    • Logs & Log Texts
    • Object Contents
  • Section: UI
    • UI Settings
    • UI Layers
    • UI Layouts
    • UI Boxes
    • HUDs
    • Notifications
    • Cursor Settings
  • Section: Menus
    • Start Menu
    • Save Game Settings
    • Option Categories
    • Menu Screens
    • Menu Requirements
    • Battle Menus
    • Loot Dialogues
    • Item Collection
    • Combatant Selections
    • Quantity Selections
    • Shop Layouts
  • Section: Texts
    • Text Settings
    • Formatting Settings
    • Flying Texts
    • Use Cost Display
    • Status Preview Display
    • Bonus Display
    • Status Change Display
    • Console Settings & Console Types
    • Text Codes
  • Sections: Editor
    • Editor Settings
    • Backups
    • Variables
    • Plugins
  • Scripting
    • Access Handler
    • Custom Nodes
    • Custom Save Data
    • Custom Component Save Data

ORK 4 Tutorials

  • ORK 4 Unity Quickstart Tutorials (3D)
    • ORK 4 Unity Quickstart 3D
    • 01 Initial ORK Setup
    • 02 Player Setup
    • 03 Music & Scenes
    • 04 UI System Setup
    • 05 UI Boxes
    • 06 Flying Texts
    • 07 Status Values
    • 08 Status Effects
    • 09 First Abilities
    • 10 Fighter Setup
    • 11 First Enemies & Battle AI
    • 12 Battle System Setup
    • 13 Animating Battle Start and End
    • 14 Random Battles
    • 15 Animating Actions
    • 16 Player Battle HUD
    • 17 Elemental Attacks
    • 18 Animating More Actions
    • 19 Inventory & Loot
    • 20 Equipment
    • 21 Loot, Start Equipment & Viewers
    • 22 Magic Abilities
    • 23 Caster Setup
    • 24 More Enemies
    • 25 Start Menu & Save Games
    • 26 Menu Screens
    • 27 Interactions
    • 28 Item Collectors
    • Quickstart Extended
  • Battle Tutorials
    • Active Time Battles
    • Phase Battles
    • Real TT 01 Real Time Battles & Tab Targeting
    • Real TT 02 Control Map, Use Ranges & Battle Area
    • Real TT 03 Camera Control, Battle AI & Reuse Time
    • Real TT 04 Damage Detection, Action Animation & Player HUD
    • Real TT 05 Switch Player & Final Adjustments
    • Hit & Miss
    • Critical Hits
    • Cast Time
    • Reuse Time
    • Grid 01: Battle Grid Setup
    • Grid 02: Highlights
    • Grid 03: Cell Types
    • Grid 04: Move Command
    • Grid 05: Scene Grid Setup
    • Grid 06: Battle Ready
    • Grid 07 Use & Affect Ranges
    • Grid 08: Better Camera Control
  • Gameplay Tutorials
    • Multiple Interaction Controllers
    • Player Group Spawn & Follow
    • Spawn Hunting Enemies
    • Gamepad Controls (Unity Input System)
    • Combined Inputs
    • Control Map for Keyboard (Shortcuts)
    • Control Map for Gamepad (Shortcuts)
    • Quests 01: Menu Screen
    • Quests 02: Hunting
    • Quests 03: Collect Potion Materials
    • Quests 04: Collect Equipment Materials
    • Quests 05: Quest Mark HUDs
    • Crafting 01: Menu Screen
    • Crafting 02: Materials & Recipes
    • Crafting 03: Getting Materials
    • Crafting 04: Proficiency & Critical Outcome
    • Shop
    • Inventory Containers
  • Schematics Tutorials
    • UI Animation Schematics
    • Flying Text Animation Schematics
    • HUD Conditional Schematics
  • UI Tutorials
    • Unity UI: Initial Setup
    • Unity UI: Status Value UI Setup
    • Unity UI: Status Effect UI Setup
    • Unity UI: Shortcut UI Setup
    • Unity UI: Dragging Notification
    • Unity UI: Interaction HUD
    • Unity UI: Shortcut HUD
    • Unity UI: Turn Order HUD
    • Unity UI: Cast Time HUD
    • Unity UI: Quest HUD
    • Unity UI: Tooltip HUD
    • Unity UI: Move Range HUD
    • Menus 01 UI Box Setup
    • Menus 02 Template HUDs
    • Menus 03 Menu Setup
    • Menus 04 Main Menu
    • Menus 05 Inventory
    • Menus 06 Equipment
    • Menus 07 Ability
    • Menus 08 Group
    • Menus 09 Quest
    • Menus 10 Crafting
  • Module 01: Status System
    • Introduction to Modular Tutorials
    • M01.1: Status Values
      • Introduction to Status Values
      • Health
      • Mana
      • Barrier
      • Base Experience
      • Class Experience
      • Spendable Experience
      • Normal Stats
    • M01.2: Modifiers
      • Introduction to Modifiers
      • Element
      • Attack Type
      • Size
      • Race
    • M01.3: Status Effects
      • Introduction to Status Effects
      • Buffs
      • Debuffs
      • Poison
      • Regeneration
      • Blind
      • Stun
      • Sleep
      • Silence
      • Enchants
      • Charm
      • Doom
      • Reflect
  • Module 02: Actions
    • Introduction to Actions
    • M02.1: Formulas
      • Introduction to Formulas
      • Physical Damage Formula
      • Magical Damage Formula
      • Hit Chance
      • Critical Chance
    • M02.2: Abilities
      • Introduction to Abilities
      • Base Attack
      • Elemental Magic Spells
      • Steal Ability
      • Drain
      • Healing Spell
      • Cure
      • Buff Abilities
      • Debuff Abilities

ORK 4 Extensions

  • Plugins
    • Save Game Compression Plugin
  • Schematic Nodes
    • Footstepper Nodes (Unity)
  • Scripts
    • A* Pathfinding Movement Component (Unity)
    • PolyNav 2D Movement Component (Unity)
    • Cinemachine Camera Control Type (Unity)
    • Rewired Input Key (Unity)
    • Unity Legacy Input Key (Unity)
    • Core GameKit Wrapper (Unity)
    • Pool Boss Wrapper (Unity)
View Categories
  • Guide
  • ORK 4
  • ORK 4 Tutorials
  • UI Tutorials

Menus 01 UI Box Setup

0:00 / 10:01
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

In this tutorial we’ll set up UI boxes for our menu system.

This tutorial is the start of a mini-series covering menu screens.
Parts 01, 02, 03 and 04 are mandatory, the rest of the tutorials can be used or not, based on your needs, as each of the other tutorials will add a single menu screen covering a feature or system (e.g. inventory, equipment and abilities).

Menu screens are used to manage inventory, abilities, the player group and more.

Before we’ll get to setting up the actual menu screens, we’ll need to set up some UI boxes we’ll use. We’ll set up the following UI boxes:

  • small content fitting in the top left
  • small content fitting in the top right
  • small content fitting in the bottom left
  • small content fitting in the bottom right
  • large scrollable in the center
  • large scrollable in the center, with tabs
  • scrollable in the top half of the screen
  • scrollable in the bottom half of the screen

We’ll also set up a UI background that’ll be displayed with our menu screens – we’ll just display a black color.

This tutorial is based on the ORK 4 Unity Quickstart 3D tutorials, but can be used in any project. Your project’s UI system should already be set to Unity UI. If not, check the initial setup tutorial for Unity UI.

As with all content when using Unity UI, we’ll set up prefabs. It’s best to do this in the UI Environment Scene, so open it.

Prefabs Setup #

We’ll start with setting up the UI prefabs.

UI Background #

Create a ready-to-use setup either using the scene hierarchy’s context menu (ORK Framework > UI > Background (Sprite)) or the ORK toolbar (search for: Background Sprite).

This’ll create a UI background a bit larger than the canvas, we just need to adjust the Image component.

Image #

  • Source Image
    Select: White_16x16
  • Color
    Select a black color with full alpha value.

The result should look like this:

Create a prefab out of the Background game object, e.g. name it Menu Full Background.

We’ll handle the background setup for our menu screens (i.e. using the prefab) in a later part of the tutorial series.

Top Left Fit #

Create a new UI box either using the scene hierarchy’s context menu (ORK Framework > UI Box > UI Box Fit Size with Title) or the ORK toolbar (search for: UI Box Fit Title).

This UI box variant will have a Content Size Fitter component attached, that fits the the vertical size (height) to the displayed content.

Rect Transform #

We’ll adjust the position and size of the UI box.

Use the top left anchor presets.

  • Pivot
    Set to: X=0, Y=1
  • Pos X
    Set to: 200
  • Pos Y
    Set to: -200
  • Width
    Set to: 400

Image #

We’ll change the used sprite and color of the Image components on the UI Box object and Title Content child object. Select both and change the following settings:

  • Image Source
    Select: BoxBlue
  • Color
    Select a white color with full alpha value.

It should now look something like this.

Create a prefab #

Create a prefab out of the UI box and save it as UI Box Blue Top Left Fit.

Bottom Left Fit #

Duplicate your UI Box Blue Top Left Fit prefab and rename the copy to UI Box Blue Bottom Left Fit.

Open it for editing and change the following settings (in this order).

Rect Transform #

Use the bottom left anchor presets.

  • Pivot
    Set to: X=0, Y=0
  • Pos X
    Set to: 200
  • Pos Y
    Set to: 200
  • Width
    Set to: 400

Save the changes to the prefab.

Top Right Fit #

Duplicate your UI Box Blue Top Left Fit prefab and rename the copy to UI Box Blue Top Right Fit.

Open it for editing and change the following settings (in this order).

Rect Transform #

Use the top right anchor presets.

  • Pivot
    Set to: X=1, Y=1
  • Pos X
    Set to: -200
  • Pos Y
    Set to: -200
  • Width
    Set to: 400

Save the changes to the prefab.

Bottom Right Fit #

Duplicate your UI Box Blue Top Left Fit prefab and rename the copy to UI Box Blue Bottom Right Fit.

Open it for editing and change the following settings (in this order).

Rect Transform #

Use the bottom right anchor presets.

  • Pivot
    Set to: X=1, Y=0
  • Pos X
    Set to: -200
  • Pos Y
    Set to: 200
  • Width
    Set to: 400

Save the changes to the prefab.

Center Scroll #

We’ll create a new UI box from scratch.

Create a new UI box either using the scene hierarchy’s context menu (ORK Framework > UI Box > UI Box Scroll Vertical with Title) or the ORK toolbar (search for: UI Box Vertical Title).

Rect Transform #

Use the middle center anchor presets.

  • Pivot
    Set to: X=0.5, Y=0.5
  • Pos X
    Set to: 0
  • Pos Y
    Set to: 0
  • Width
    Set to: 720
  • Height
    Set to: 680

Image #

We’ll change the used sprite and color of the Image components on the UI Box object and Title Content child object. Select both and change the following settings:

  • Image Source
    Select: BoxBlue
  • Color
    Select a white color with full alpha value.

It should now look something like this.

Create a prefab #

Create a prefab out of the UI box and save it as UI Box Blue Menu Center Scroll.

Tab Center Scroll #

Duplicate your UI Box Blue Menu Center Scroll prefab and rename the copy to UI Box Blue Menu Tab Center Scroll.

Open it for editing and change the following settings.

Adding Tabs #

We’ll add a tab area (to display the tab buttons in), have the root UI Box object selected.

Either use the scene hierarchy’s context menu (ORK Framework > UI Box > Tab > UI Box: Add Tabs Top (Scroll Horizontal)) or ORK toolbar (search for: Tabs Top Horizontal).

This’ll add child object where our tabs will be added to – they’re scrollable horizontally (without displaying a scrollbar). The area is added to the top of the UI box, moving the scroll rect down a bit. We’ll adjust the positioning a bit, making the tab area higher.

Tabs Rect Transform #

Select the UI Box > Tabs child object (should already be selected by creating it).

  • Height
    Set to: 70

Content Scroll Rect Transform #

Select the UI Box > Scroll View child object.

  • Top
    Set to: 70

The result should look like this:

Save the changes to the prefab.

Top Scroll #

Duplicate your UI Box Blue Menu Center Scroll prefab and rename the copy to UI Box Blue Menu Top Scroll.

Open it for editing and change the following settings (in this order).

Rect Transform #

Use the middle center anchor presets.

  • Pivot
    Set to: X=0.5, Y=0
  • Pos Y
    Set to: 0
  • Height
    Set to: 340

Save the changes to the prefab.

Bottom Scroll #

Duplicate your UI Box Blue Menu Top Scroll prefab and rename the copy to UI Box Blue Menu Bottom Scroll.

Open it for editing and change the following settings (in this order).

Rect Transform #

Use the middle center anchor presets.

  • Pivot
    Set to: X=0.5, Y=1
  • Pos Y
    Set to: 0

Save the changes to the prefab.

That’s it for the prefabs.

In total, the menu UI boxes and background will look like this:

UI Box Setup #

With out prefabs ready to use, we’ll set up the UI boxes in the editor.

Open the ORK editor and navigate to UI > UI Boxes. We’ll add multiple new UI boxes.

UI Boxes General Settings #

Navigate to UI > UI Boxes > General Settings, we’ll now set up tab controls and audio.

UI Box Top Left Fit #

Add a new UI box.

Base Settings #

  • Name
    Set to: Blue Top Left Fit
  • UI Layer
    Select: Layer 1

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Top Left Fit

Override Default Settings > Schematics #

I’m also using the move from left and move to left schematics from the UI animations schematics to animate this UI box.

  • Own Schematics
    Enable
  • Open Schematic
    Select: UIMoveInFromLeft
  • Wait
    Enable
  • Close Schematic
    Select: UIMoveOutToLeft
  • Wait
    Enable

UI Box Bottom Left Fit #

Copy the Blue Top Left Fit box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Bottom Left Fit

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Bottom Left Fit

UI Box Top Right Fit #

Copy the Blue Top Left Fit box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Top Right Fit

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Top Right Fit

Override Default Settings > Schematics #

I’m changing to the move from right and move to right schematics.

  • Open Schematic
    Select: UIMoveInFromRight
  • Close Schematic
    Select: UIMoveOutToRight

UI Box Bottom Right Fit #

Copy the Blue Top Right Fit box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Bottom Right Fit

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Bottom Right Fit

UI Box Menu Center Scroll #

Copy the Blue Bottom Right Fit box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Menu Center Scroll

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Menu Center Scroll

Override Default Settings > Schematics #

I’ll use the default schematics

  • Own Schematics
    Disable

UI Box Menu Tab Center Scroll #

Copy the Blue Menu Center Scroll box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Menu Tab Center Scroll

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Menu Tab Center Scroll

UI Box Menu Top Scroll #

Copy the Blue Bottom Right Fit box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Menu Top Scroll

Unity UI #

  • UI Box Prefab
    Select: UI Box Blue Menu Top Scroll

Override Default Settings > Schematics #

I’m changing to the move from above and move to above.

  • Open Schematic
    Select: UIMoveInFromAbove
  • Close Schematic
    Select: UIMoveOutToAbove

UI Box Menu Bottom Scroll #

Copy the Blue Menu Top Scroll box and change the following settings.

Base Settings #

  • Name
    Set to: Blue Menu Bottom Scroll

Unity UI #

  • UI Box Prefab
    Select UI Box Blue Menu Bottom Scroll.

Override Default Settings > Schematics #

I’m changing to the move from below and move to below.

  • Open Schematic
    Select: UIMoveInFromBelow
  • Close Schematic
    Select: UIMoveOutToBelow

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 HUDs used as templates.

Table of Contents
  • Prefabs Setup
    • UI Background
      • Image
    • Top Left Fit
      • Rect Transform
      • Image
      • Create a prefab
    • Bottom Left Fit
      • Rect Transform
    • Top Right Fit
      • Rect Transform
    • Bottom Right Fit
      • Rect Transform
    • Center Scroll
      • Rect Transform
      • Image
      • Create a prefab
    • Tab Center Scroll
      • Adding Tabs
      • Tabs Rect Transform
      • Content Scroll Rect Transform
    • Top Scroll
      • Rect Transform
    • Bottom Scroll
      • Rect Transform
  • UI Box Setup
    • UI Boxes General Settings
    • UI Box Top Left Fit
      • Base Settings
      • Unity UI
      • Override Default Settings > Schematics
    • UI Box Bottom Left Fit
      • Base Settings
      • Unity UI
    • UI Box Top Right Fit
      • Base Settings
      • Unity UI
      • Override Default Settings > Schematics
    • UI Box Bottom Right Fit
      • Base Settings
      • Unity UI
    • UI Box Menu Center Scroll
      • Base Settings
      • Unity UI
      • Override Default Settings > Schematics
    • UI Box Menu Tab Center Scroll
      • Base Settings
      • Unity UI
    • UI Box Menu Top Scroll
      • Base Settings
      • Unity UI
      • Override Default Settings > Schematics
    • UI Box Menu Bottom Scroll
      • Base Settings
      • Unity UI
      • Override Default Settings > Schematics
  • Save Changes
Sitemap
  • Showcase
  • ORK 4 Guide
    • Documentation
    • Tutorials
    • Extensions
    • API
  • ORK 3 Guide
    • Documentation
    • Tutorials
    • API
  • ORK 2 Hub
    • Tutorials
    • Plugins
    • API
  • Support
  • Forum
  • Get ORK
  • Contact
  • Blog
  • Makinom
  • gamingislove.com
Categories
  • News (75)
  • ORK 2 (137)
    • Tutorial (137)
      • Game tutorial (50)
      • Gameplay (32)
      • How-to (55)
  • Release (158)
Search

© 2015 Gaming is Love e.U.

Disclosure: This site may contain affiliate links, which means I may receive a commission if you click a link and purchase something that I have recommended. While clicking these links won’t cost you any money, they will help me fund my development projects while recommending great assets!