I’ve been making a main menu for my game, and I’ve been really enjoying it! But the text has got me stumped. I want to increase the size of the button when it get’s hovered, but there is no text size blueprint, and if I wrap the button with a size box, the text isn’t scaled, just the button. And if I use a scale box, it just stretches the text. If I scale them seperately, it just glitches…
It’s probally a simple fix, but I haven’t been able to find anything on this topic, so help would be greatly appreciated!
Hi,
I’m not sure if there’s an easy way with UMG aside from adding code to scale the text on mouse over. I’ve never tried this myself however. The text itself being a child of the button wouldn’t necessarily be affected by the size box that contains the button.
Sorry I can’t be of more help
Ok, thanks for replying! It’s not a big deal, so I don’t think I’m going to wory about it. I do have another question though. I have 2 separate Game Modes, one for the menu, and one for the actual game. In the menu options I made a choice to be able to reduce the volume of the music, but the thing is, once I go the other game mode, I can no longer access that variable, because it’s no longer valid. I’ve been researching this, and it seems like there is no singular awnser. I read about game instances, and so I guess I’m wondering if that would work…? Or is there another way? Thanks!
Hi,
The game instance would be the place as it persists across levels. Game modes are reset as levels load so scores, volume, etc go either in the game instance or player state. Volume however does belong in the instance as it relates to the game as a whole.
I hope this helps.