Best way to script menu screens?
General Widget Blueprint / Scripting question here...
Let's assume I have a Main Menu widget with 2 buttons on:
My questions are:
I basically want to know if I should be Removing from Parent the widget BP I no longer way to show and Creating / Adding to Viewport the widget BP I do want to show. I just feel like there may be a more elegant way to flow from one menu screen to another?
asked Apr 11 '18 at 06:18 PM in Blueprint Scripting
Hey. I'm quite new to Unreal so don't completely trust this, but what i've been doing so far is simply toggling the visibility of parts in the Mainmenu HUD on and off once a certain button is pressed using the "set visibility" node.
answered Apr 11 '18 at 06:50 PM
Im also quite new but the way i do my hud is with animations and i just have everything off screen and comes onto screen via button click
answered Apr 11 '18 at 07:03 PM
Depends what exactly you want. I couldn't quite grasp your particular functionality but I will say this... it sounds like you'd be best served with an "empty" level that contains the main menu widget. This widget gets created by the level blueprint. When you hit play it loads your first game level. Now the confusing part. This leader board, do you want that available all the time in any level? Then yes, set visibility to open and close it. If not, if this is something that only opens from the main menu I would overlay in on the main menu and when you click leader board hide the main menu, then when you hit back hide the leader board and reveal the main menu again.
answered Apr 11 '18 at 07:04 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here