Issue with hud ui using both verse and hud controller device

Summary

So i used verse to hide ui on the screen for the player then after i show a loading screen ect i then use the ResetElementsForPlayer() now the way my brain is thinking this works is it default to whatever settings are inside the hud_controller_device ?

It works as intended if you start/stop the game 1 time but the first initial game it messes up the location of the item bar and shows health/shield which is weird

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

Playspace := GetPlayspace()

    # HUDController := Playspace.GetHUDController()
    # HUDElementsToHide := array{
    #     player_hud_identifier_all{},
    #     creative_hud_identifier_all{}
    # }

    # Hide all HUD elements
    #HUDController.HideElementsForPlayer(Player, HUDElementsToHide)

#HUDController.ResetElementsForPlayer(Player, HUDElementsToHide) # Restore the HUD elements

This is the code i used and have a hud_controller_device in the world with like health turned off shield turned off and other settings

Expected Result

it should not reshow the health/shield and change the alignment of the item bar

Observed Result

it seems to be messed up for the current game but when you stop/start again its fine. In a private island code it is messed up too

Platform(s)

pc

Additional Notes

I have found a work around by have hud_controller_device for each player in the game have the settings to priority high - Hide hud ect then update the class to the players class instead of using the verse api. This seems to work then after i reset the class on this device and it reverts to using the default island hud_controller_device this is a weird workaround so feel it needs checking out unless its me and im not understanding the ResetElementsForPlayer()

This topic was automatically closed after 180 days. New replies are no longer allowed.