Hello everyone!
I saw many questions about images and backgrounds, but I think I didn’t see the one that fits for me.
Let me describe the situation. I have an awesome *.png file that I want to use as background for my complex menu. I’ve done so by adding it as an Image element to the widget. But it fits for “single widget” menus. And as long as I want some sub-menus, I want to change only HUD elements of widgets - buttons, forms etc., but not the background image.
I saw exactly what I want in the “Strategy Game” sample game, but they create widgets with C++ and I want to do it with UMG yet.
The closest idea that I got is to create a particular “background” widget for a simple image, but I feel this is not the brightest idea.
Should I use some brushes, or styles, or how does it actually work? Maybe I just didn’t find a tutorial for me?
Any help would be much appreciated!
You can add a Canvas as a child too. By setting the Visibility of the Canvasses you don’t need on Hidden, you can make a uniform menu with different screens like Main Menu, Options, Inventory etc. Just set the Visibility to Visible when you need them to be Visible
So, it’s like having all-in-one menu widget? Thanks for this idea, but I feel there is some like “beautiful” and simple and “as intended to be” solution for this with all the widget swapping and stuff The reason I can’t use your solution (if I got it right), on level select I do loading of all existing level sets. Or I can use it, just can’t clearly imagine how exactly.
I’m really sorry to be an askhole. I’ve asked a guys with great experience in UE4 and he recommended the same as you did, Amsanity. So I think, I can mark it an answer to resolve my question. I just don’t understand that concept.
What I did, I create the separated widget “SplashScreenWidget” and placed there the name of game Text and screenshot Image. Later I attach my “MainMenuWidget” to it and from this point I can move further one level by menu, or create a modal widget for settings and so on I believe it can be wrong at some point, but it completely fits my small project for now
Thanks again