Vehicle 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 Player object and add a Game State HUD Enabler component

  2. Set all the game states for which you want the HUD to be active

You can also toggle the activation of the HUD on any vehicle by grabbing its HUD Manager and using the following code:

// Activate the HUD
myHUDManager.ActivateHUD();

// Deactivate the HUD
myHUDManager.DeactivateHUD();

Last updated