Skip to content

User Interface and HUD Customization

The entire in-game player interface in Open MMORPG is packaged as a single canvas prefab, CanvasGameplay, referenced directly by Game Instance.


To create your own interface:

  1. Duplicate the demo’s canvas prefab: Assets/OpenMMORPG/Demo/Prefabs/UI/CanvasGameplay.prefab.
  2. Move the duplicated prefab into your own project folder (e.g. Assets/MyGame/UI/CanvasGameplay.prefab).
  3. Assign your copy to the UI Scene Gameplay Prefab field in your Game Instance.

Mobile & Survival Layouts: The demo also provides CanvasGameplayMobile (optimized for touch screens) and CanvasGameplay_Survival (adds Food and Water hunger gauges).


Nearly all user interface windows in Open MMORPG inherit from UIBase:

  • Hide On Awake: When enabled, the panel is hidden automatically when scenes load.
  • Move To Last Sibling On Show: Brings the window to the front of the UI hierarchy when opened.
  • On Show / On Hide Events: UnityEvents triggered when windows toggle, ideal for playing opening audio or driving tween animations.

3. UI Component Wrappers (TextMeshPro Support)

Section titled “3. UI Component Wrappers (TextMeshPro Support)”

To remain agnostic of text rendering engines, Open MMORPG uses component wrappers:

  • Text Wrapper (TextWrapper): Bridges standard Unity Text and TextMeshProUGUI. You can switch your entire UI to TextMeshPro without editing game scripts.
  • Input Field Wrapper (InputFieldWrapper): Bridges standard InputField and TMP_InputField.
  • Dropdown Wrapper (DropdownWrapper): Bridges standard Dropdown and TMP_Dropdown.

To generate wrappers for UI objects, right-click any UI object in the hierarchy and choose GameObject → UI → Wrappers → Text Wrapper - Text Mesh Pro.


Inside CanvasGameplay, distinct UI controllers manage each interface subsystem:

ModuleComponentDescription
Character FrameUICharacterDisplays the player’s portrait, current level, HP bar, MP bar, and active buff tray.
Target FrameUITargetShows the selected target’s nameplate, health percentage, level, and distance.
Action BarUIActionBarHotkey slots (1–0) holding draggable skills and consumable items, complete with cooldown swipe overlays.
MinimapUIMinimapRealtime circular radar map displaying terrain, party member blips, and quest markers.
Chat WindowUIChatHandlerTabbed chat interface for Global, Local, Party, Guild, and Whisper messages.
Quest TrackerUIQuestTrackerOn-screen checklist of active quest tasks and current completion counts.