Hello,
I have a Widget class called MainMenu which contains buttons and text boxes placed into UVerticalBox instances which those boxes are of type UPanel.
I am trying to use the Widget Class (MainMenu) to find all widgets of type Vertical Box to store upon initialization. It seems the Blueprint only provides access to Find All Widgets of class, and there lists all of the Widgets I have created using Blueprint (in other words, Blueprint widgets). However, I want to store all VerticalBox Panel Types found in the Widget Class at initializationt.
Why? Because I have a large menu scheme, and instead of having to create these cumbersome combinations of when I click this button, I want to hide these vertical boxes and show these vertical boxes… I can instead create a function that takes in one argument: an array of panel objects I want to show. The function would take iterate through the array of vertical boxes I populated at initialization, set visibility to Hidden for all of them. Then iterate through the array argument and set visibility to Visible for all of them.
I am aware you can click IsVariable on the widget object inside the designer, but that just makes the variable which is only half of a solution.
Is there a way to get all widgets of a certain type within a widget blueprint?