HUD Manager Setup
Last updated
Last updated
To begin setting up your vehicle HUD:
Add a HUD Manager component to the root transform of the vehicle.
Customize the settings in the inspector.
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:
Go to the Camera Target on your vehicle.
Add events to activate/deactivate the HUD when a camera follows the vehicle.
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: