HUD Manager Setup

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.

Use the Camera Target to activate or deactivate the HUD.
  1. Alternatively, you can use the Game Agent Vehicle Setup Manager's events as well:

Use the Game Agent Vehicle Setup Manager to toggle the HUD.

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.

Enable the HUD only in specific game states.

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();

Last updated

Was this helpful?