Verse UI losing focus on screen visibility changes

When using widget visibility to hide and show elements of an interface in verse, the current selected button/focus is not updated for controller users, making impossible to navigate throught the interface.

Computer (Mouse) and Touch users are not affected by that issue, since they can directly click on the other place on the screen, not needing to change the focus the same way that controller users need

Note that this is not the same issue that happens when the buttons are not on a grid pattern and can not be selected by moving the d-pad. On that case one of the buttons are still focused, just can’t be switched to another, while on this issue none of the buttons at all are focused, ignoring any and all controller input actions.



Thank you for your report! We would like to look into this further, would you be able to submit a bug report using the form available here: Fortnite Creative

After some more testing, looks like that it is not “fully” related to screen visibility changes.
I changed how the screen is drawn and updated, recreating it from scratch, by removing the old and then placing the new, instead of just changing visibility of elements like how was before. This also doesn’t work and the bug still persist.

Also tried adding some delay, making sure that the screen is fully closed before opening the new one, still no changes on the behavior.

    RefreshMenuForController<private>()<suspends> : void = {
        if (Player := MaybePlayerRef?, PlayerGameUI := GetPlayerUI[Player]) {
            PlayerGameUI.RemoveWidget(CurrentScreenWidget)
            
            Sleep(0.1)

            set CurrentScreenWidget = CreateScreenWidget(CurrentScreenPageIndex)

            PlayerGameUI.AddWidget(CurrentScreenWidget, player_ui_slot{InputMode := ui_input_mode.All})
        }
    }