Hi I’m new on unreal engine, so how do I make my widget hidden on another widget? i don’t want the widget to be redundant
Many ways:
- access it directly after setting a reference inside the widget
- use an Event Dispatcher
- access the actor that has the widget reference
If you need more direct help, do show how, where and when you created both widgets.
This my widget, i want the current mission widget hidden
this is the puzzle widget blueprint
while, this is the current mission widget… doesnt have anything yet
can u help me fix this? I’m new on ue so i really didnt understand that much. Hope u can help me explain with my pic
We need to know how you do the above. Your script does not show it.
- where do you create the Jigsaw widget?
- where do you create the Mission widget?
- what needs to happen? we click a button in Jigsaw → hide Missions?
i don’t want the widget to be redundant
And what does it have to do with redundancy. Do you want to hide it or remove it? As these are two very different things.
sorry but i dont much understand, i created both widgets in different levels. I want the mission ui to be hidden in jigsaw widget once i enter the jigsaw level
How do you do it? Create Widget
→ Add to Viewport
?
We can’t help without knowing what you’re doing. You could try:
Just before you open the jigsaw level. But that’s pretty ham-fisted…
This does not help in any way, it does not answer any questions. This is how you normally create widgets:
Where do you create your widgets and add them to the viewport - this is how you can make them talk to one another.
Also, did you try what was suggested above?
How do your widgets end up in the game? What makes them show up on the screen?
this is my mission viewport, im sorry a bit confused. But the jigsaw one is by a game level, not as widget
OK.
- the Mission widget is created and referenced inside the player.
But the jigsaw one is by a game level, not as widget
Could you explain what this means? Because the jigsaw is very much a widget:
How do you make it appear?
yes, but i dont have the viewport inside the player like the mission one. I built it change gamemode
You do show it somehow, right? How? In the Game Mode? How do you make the Jigsaw widget appear?
And let me ask again - did you try what I suggested above?
Coming back to my very first question:
- the Mission widget is created and referenced inside the player
- the Puzzle Level Blueprint creates the Jigsaw widget
Could you explain what is supposed to happen now? Use bullet points please.
- game starts in the non-Jigsaw level → player spawns → player creates the Missions widget
- we choose a mission → we load the Jigsaw level
- the Jigsaw level creates and shows the Jigsaw widget
Correct so far? What happens next?
You want to hide the Missions widget when the Jigsaw widget appears?
yes i want to hide the mission widget.
actually, I have two game levels: a farming level with a mission widget in it and another one is jigsaw level. I added a trigger in the farming level to enter the jigsaw level. However, the mission widget from the farming level also appears in the jigsaw level. How can I make the mission widget hidden in the jigsaw level?
Your original question is not correct. This is the right question to ask:
How can I make the mission widget hidden in the jigsaw level?
What triggers this script?
Begin Play
? if so: every time the player spawns in the new level, they create a brand new widget. Could you confirm?
the create mission widget is connected with event beginplay. It not create a new widget but the mission widget appears on my jigsaw level
It not create a new widget but the mission widget appears on my jigsaw level
How do you know this? If the player character spawns, it will create a widget on Begin Play. It does not matter which level it is. Unless you have script / another character / game mode that prevents that - but you never mentioned it.
Add:
Here:
Not great, not terrible. 3.6/5 as solutions go.
OH MY GOD IT WORKSSS!!! THANKYOU SO MUCH MAY GOD BLESS U ALWAYSSSS!