HideElementsForPlayer and ShowElementsForPlayer doesn't work since update 36.00

Summary

Since update 36.00, HideElementsForPlayer and ShowElementsForPlayer doesn’t work anymore.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

  • Create a verse file
  • Use GetPlayspace().GetHUDController().HideElementsForPlayer(…) to hide some hud elements

Expected Result

The hud elements should be hidden

Observed Result

The hud elements are still visible

Platform(s)

Xbox, Luna

Additional Notes

Although the HideElements method works, but it doesn’t allow us to show or hide the HUD for a specific player.

Randomly sometime the HideElementsForPlayer works, but it’s rare

An example of a Verse device that doesn’t work:
hud_manager.verse (1.1 KB)

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Fortnite.com/UI }
using { /UnrealEngine.com/Temporary/Diagnostics }

hud_manager_device<public> := class(creative_device):
    
    OnBegin<override>()<suspends> : void =

        Sleep(3.0)
        
        HUDController := GetPlayspace().GetHUDController()
        for(mPlayer : GetPlayspace().GetPlayers()):

            Print("UPDATE HUD")

            var HUDElementsToHide : []hud_element_identifier = array:
                creative_hud_identifier_all{}
                player_hud_identifier_all{}
                hud_identifier_world_resource_wood{}
                hud_identifier_world_resource_stone{}
                hud_identifier_world_resource_metal{}
                hud_identifier_world_resource_permanite{}
                hud_identifier_world_resource_gold_currency{}
                hud_identifier_world_resource_ingredient{}
                creative_hud_identifier_player_inventory{}
            HUDController.HideElementsForPlayer(mPlayer, HUDElementsToHide)
            #HUDController.HideElements(HUDElementsToHide)
2 Likes

Can confirm. Hiding HUD elements works fine but it won’t activate if trying to hide or show for specific players.

2 Likes

FORT-920921 changed to ‘Needs More Info’. We’re missing information that would help us determine the source of the issue.

I have not tried using these functions, When you were testing this did it effect PC also or was it only Xbox?

Yes, it happened on PC too

We are experiencing this issue as well

2 Likes

Yeah, having the same issue.. Can’t find a workaround either, it’s very annoying. Has anyone found a workaround?

1 Like

So I got a workaround and it’s rly dumb.. The ShowElementsForPlayer works for everyone for some reason and the HideElementsForPlayer turns out only works for a single tick..

Putting the HideElementsForPlayer on a loop that ticks every tick and lasts for a second or two actually gets the command to stick and the UI stays hidden.

The Show command however overwrites everything so you need to keep track of who has what hidden in arrays and trigger a short loop of the HideElementsForPlayer for each of them when someone else uses the Show command.