I am working on an in game menu that is controllable via string input. Right now I want to find a way to dynamically generate the navigation inside a UUserWidget which contains other widgets, say for example UButtons.
___________________ | Button 1 | |------------------| |Button 2|Button 3| |_________|________|
Currently i am navigating via up/down commands through an arraylist which contains the buttons from the widgettree.
Now to get navigation right i need to be able to also use left/right commands to switch from button two to 3 with “right” instead of “down”.
I know I could let the user define the navigation via the editor but i want to define that dynamically.
Is there a way to get the position of a childwidget inside an UUserWidget?
cheers and thanks!