Fixed Button Sizes In Menus
UI menu buttons would size to their content but I needed them in some instances to be the same size since it made weird gaps appear in some menus vertical boxes (Debug Menu as an example) or made a menu look awkward (Pause Menu as an Example) because of the variety of sizes.
DEBUG MENU (Before)
PAUSE MENU (Before)
Because sub widgets do not have certain parameters exposed I could not just change the size to content variable in the buttons in the different menus. To solve this I just made two blueprints derived from the same C++ class. This also let me add more customization to the look but use the normal functionality.
PAUSE MENU (After)
Author: Krishnie Katie Naidoo
Posted on 10/13/2023
Comments
Post a Comment