Hiding the HUD

Information on how to hide the HUD, or particular HUD elements

There may be circumstances where you want the HUD hidden, e.g. for capturing footage, or showing cinematic camera shots. We have a few helpers related to this:

As an Observer

Calling the methods directly

The various methods to control the HUD/UI visibility that are used by the Observer role can also be called directly, all being methods on the BP_PlayerController, e.g.

Entire HUD visibility

Use either ToggleHUDVisibility or SetHUDVisibility from your player controller

SetHUDVisibility works by broadcasting a OnHUDVisibilityChanged event, which is listened to by the HUD layer widgets (e.g. WBP_Origin_HUD), collapsing them.

What do I do if my custom widget isn't hidden by this command?

If your custom widget isn't present on a HUD Layer widget (e.g. you added it manually in a custom way), it may not get hidden automatically by the SetHUDVisibility method. If so, you can still make it listen to the command by manually making your widget listen to the player controller's OnHUDVisibilityChanged event, and using it to change its visibility.

Nameplate Visibility

Use either ToggleNameplateAbility or SetNameplateVisibility from your player controller

Last updated