I currently work on the interaction between two ui elements in my game. One is a pop up that opens while the other one stays open. When I close the pop up again after being finished with it, the focus ring of the other ui seems to be broken, however if I focus any of the buttons on the ui it works again and I can move from button to button. This ui however, has two views between which I swap. When I now hide the first view and show the second one again, the focus ring does not work, so I focus one of the buttons by calling
button.Focus() But when I press any of the arrow keys now the button just loses focus and I can’t focus any of the elements. I have registered the NavigationMoveEvent callback on the button and it does not trigger either, so I guess the move event doesn’t occur and instead something completely different happens.
Has anyone a clue if there are any issues with Focus() or can tell me if there is a way to debug the focus ring or events sent by the eventsystem?