UI & HUD Systems
Most UI is self-bootstrapping â managers create themselves at runtime via [RuntimeInitializeOnLoadMethod] and persist across scenes. No scene wiring required.
Self-bootstrapping managers
UI managers instantiate themselves at runtime and survive scene loads via DontDestroyOnLoad â no prefab or Inspector wiring. All of them are guarded client-only (the UNITY_SERVER guard).
| System | Script | Behaviour |
|---|---|---|
| Chat | RodChatManager | Networked (Mirror); Enter/T to open |
| ESC menu | EscMenu | Resume / Logout / Quit; sort order 200 |
| Who's Online | PlayerListUI | P to toggle; color-coded by class |
| Nameplates | PlayerNameplate | Billboard, distance-fade 20â40u; local hidden |
| GM console | GmConsole | Backtick / F1; sort order 999 (see GM Console & Tools) |
Every hideable canvas must set blocksRaycasts = false explicitly â alpha = 0 alone does not stop raycasting. An invisible canvas with a GraphicRaycaster makes IsPointerOverGameObject() return true forever and silently breaks camera orbit. This bit the project once already.
Combat HUD
- Health bar green, shield absorb layered in blue on top.
- Dodge pips â two squares; filled = ready, empty = recharging.
- Ability slots â 6 (1/2/3/4/move/ultimate); greyed + countdown on cooldown, glow rim when ready.
- Damage floats â white direct ¡ yellow crit ¡ orange condition ¡ green heal ¡ blue absorb; <5 dmg suppressed. (Rendered by
FloatingDamageTextâ part of the game-feel layer.) - Condition icons under enemy nameplates (Burn, Slow, Suppress, Stagger, Exposed, Tethered).
The combat HUD moved from a plain bar layout to an authored health/mana orb + action-bar art frame. PlayerHUD.cs was reworked to drive a single PlayerHUD.png frame (which replaced the older ActionBarHealthManaCombo.png), and XpBar.cs was adjusted to fit under it. The bootstrapping model is unchanged â PlayerHUD still builds itself at runtime.
Camera
CameraFollow is a WoW/Smite-style orbit rig: cursor free by default, hold right mouse to orbit, _typingInUI suppresses orbit while typing. Full field reference, camera collision, the one-camera- per-zone rule, and the root-motion fly bug are documented in Player Movement, Camera & Controls.
Related: Player Movement, Camera & Controls ¡ GM Console & Tools ¡ Combat Core & Loop