🎨
UVC
  • Introduction
  • Installation
    • Installing in New Project
    • Installing in Existing Project - SCK
    • Installing in Existing Project - MCK
  • Space Combat Kit Tour
  • Mech Combat Kit Tour
  • Player Setup
  • Vehicle Framework
    • Game Agents
    • Vehicles
    • Modules
      • Module Mounts
      • Modules
      • Module Types
      • Module Attachments
      • Display Module On UI
      • Module Managers
  • Input
    • General Input
    • Vehicle Input
    • Rewired Integration
  • Player/AI
  • Spaceships
    • Speed UI
    • Space Fighters
    • Capital Ships
  • Mechs
    • Speed UI
  • Vehicle Control Animations
  • Character Enter/Exit
  • Camera
    • Camera Setup
    • Vehicle Setup
    • Secondary Cameras
    • Death Camera
  • Weapons
    • Framework
      • Triggerables System
      • Weapon System
    • Vehicle Setup
      • Vehicle Weapons
      • Cursor Aiming
    • Projectile Weapons
    • Beam Weapons
    • Missile Weapons
    • Resource Handling (Ammo/Heat)
    • Turrets
    • HUD Weapon Info
    • Health Modifier Volumes
  • Radar
    • Radar Setup
    • Target Setup
    • Target Selectors
    • Trackable Types
    • Improving Radar Performance
    • Target Notification
    • Radar Audio
  • Health
    • Health Framework
      • Health
      • Damageable
      • Damage Receiver
      • Health Modifier
      • Health Types
      • Health Modifier Types
      • Surface Types
    • Vehicle Setup
    • Damageable Object Setup
    • Detonators
    • Health Recharge
    • Health UI
    • Energy Shield
    • Damageable Module Linkers
  • HUD
    • HUD Basics
    • HUD Manager Setup
    • Custom HUD Components
    • HUD Module Display
    • Camera View Management
    • HUD Cursor / Reticle
    • Weapon UI
    • Resource Container UI
    • 2D Radar
    • 3D Radar
    • Target Boxes
    • Target Holograms
    • Minimaps
    • HUD Distance Lookup
  • Loadout
  • AI - Space Combat Kit
    • AI Setup
    • AI Spaceship Behaviours
  • AI - Mech Combat Kit
  • Game States
  • Teams
  • Floating Origin
  • Object Pooling
  • Menus
    • Creating Menus
    • Button Controllers
  • Rumbles
  • Rigidbody Characters [WIP]
  • Utilities [WIP]
    • Object Triggers
    • Shadow Caster Doubles
    • Gimbals
    • Game State Post Process Enabler
  • Objectives
  • Resources System
    • Resource Containers
    • Resource Handlers
    • Resource Container Triggers
    • Module/Vehicle Resource Usage
    • UI
  • Cutscenes
  • URP Upgrading
Powered by GitBook
On this page

Was this helpful?

  1. HUD

HUD Manager Setup

PreviousHUD BasicsNextCustom HUD Components

Last updated 8 months ago

Was this helpful?

To begin setting up your vehicle HUD:

  1. Add a HUD Manager component to the root transform of the vehicle.

  2. Customize the settings in the inspector.

HUD Activation

By default the HUD is not activated at the start, so that the HUDs of all the vehicles don't appear on the screen at once.

The best way to make sure that only the player vehicle's HUD is activated is to:

  1. Go to the Camera Target on your vehicle.

  2. Add events to activate/deactivate the HUD when a camera follows the vehicle.

  1. Alternatively, you can use the Game Agent Vehicle Setup Manager's events as well:

You may also want to disable the HUD in specific game states. To do this, go to the player Game Agent component and add a Game State HUD Enabler component. In the inspector, you can add the Game States that the game needs to be in for the player vehicle's HUD to be visible.

You can manually toggle the activation of the HUD on any vehicle by getting a reference to its HUD Manager and using the following code:

// Activate the HUD
myHUDManager.ActivateHUD();

// Deactivate the HUD
myHUDManager.DeactivateHUD();

Use the Camera Target to activate or deactivate the HUD.
Use the Game Agent Vehicle Setup Manager to toggle the HUD.
Enable the HUD only in specific game states.