Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMG Buttons stop working

I have this UMG widget my_menu_bp. It has different buttons which work inside the Level BP. So alt text

  • If you press M it opens the menu,
    enables mouse control and then
    finally binds the event dispatchers
    from my_menu_bp. It works fine.

  • If I press the control tab it closes my_menu_bp and opens control_bp.

  • BUT if I'm inside control and I want to come back to my_menu all the buttons stop working. my_menu_bp opens and is added to viewport but nothing else happens.

This is the screenshot for my control_bp, as you can see is very simple. Onclicked button, it removes the control_bp and shows up my_menu_bp. And this is the exact moment when buttons stop working. After I press this button. alt text

What is causing this? Am I doing something wrong? Ive been stuck with this and I just cant find a solution.

If you need any additional screenshot or info, just ask me for it, thank you in advance.

Product Version: Not Selected
more ▼

asked Apr 20 '15 at 07:40 AM in Blueprint Scripting

avatar image

1 2 4 3

avatar image Narghile Apr 20 '15 at 11:27 AM

For my reference, what are you casting to when you remove the widget in first pic?


avatar image Alice90 Apr 20 '15 at 12:05 PM

Every widget. So if for example I Add to viewport widget1, widget2, widget3... I'm using that node for removing every single of them just with the M button.

avatar image Narghile Apr 20 '15 at 12:30 PM

So to dumb it down for me.

You have 3BP. When they are on screen, you can use a TAB at the top, you jump between them.

Is the scripting in your Character or Level?

Do any of the other Widget have to be live when yo are look at one. For example, Viewing, 2. Does 1 & 3 need to be attached to viewport?


avatar image Narghile Apr 20 '15 at 12:57 PM

This is the same widget issue you had the other day?


avatar image Alice90 Apr 20 '15 at 01:13 PM

Its a different one. Last day I wanted to remove every widget from screen. Now the issue is point by point :

  • Start Play level

  • Press M -> my_menu widget appears -> selecting materials from here works fine.

  • Change to controls control_bp (2nd pic), it changes fine.

  • Going back from control_bp to my_menu starts the problem. I cant select materials anymore. Buttons are not responding.

The scripting is inside Level blueprint.

If I'm inside control blueprint, the other widgets are disabled. Theres only one widget at a time. For example (2nd pic) : - Click button -> Removes current widget from parent -> Creates the new one.

avatar image Narghile Apr 20 '15 at 01:18 PM

Have you tried to remove after casting to second widget?

Still not sure why you are cast everytime, why not set reference on begin play like you had the other day.


avatar image Alice90 Apr 20 '15 at 01:22 PM

But I dont want to remove them, I want to enable my event dispatchers when I press the button Select Materials from inside the Controls widget. They only work when I first press M, then they stop working.

alt text

avatar image Narghile Apr 20 '15 at 01:28 PM

I was thinking like this.

alt text


capture.jpg (50.0 kB)
avatar image Narghile Apr 20 '15 at 01:35 PM

So you when you go from Control widget, back to Menu reference, it is not referencing it properly as fen said on the forum post. Set your references up properly.

This is my event begin play, all my widget referenced

alt text


capture.jpg (33.9 kB)
avatar image Alice90 Apr 20 '15 at 01:49 PM

Just a quick question Narg, that Variable you are setting from the Widget : menu , which is the correct way to put it inside your current widget?

Inside widget's event graph - Add variable - In variable type select my_menu variable - Name it the same way as the one from Event Begin Play

alt text

And then, finally, replace all the variables I had with this new one in both widgets_bp and level_bp ?

Sorry for all the words, but I want to tie up this.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Not on click, reference it on creation of widget or begin play.

Do not set it as the same variable, have: control - control, have: menu - menu.

Do no use the same reference for different widgets. it will not go well at all from experience.


more ▼

answered Apr 20 '15 at 02:07 PM

avatar image

1.7k 74 38 109

avatar image Alice90 Apr 20 '15 at 02:24 PM

If its not much to ask, could you give me an example on how those nodes are created? I'll try to explain it in another image. alt text

Im afraid Im doing this wrong all over again, I tried with several variables and configurations and it isnt working :(

avatar image Narghile Apr 20 '15 at 02:47 PM

Cast to your First BP

Call that reference.

Give me a few mins, see what I can come up with.


avatar image Narghile Apr 20 '15 at 02:53 PM

Casting to level bp, is unknown to me. for such a small action, I would put in Player.

Easy to reference, cast and add to.


avatar image Alice90 Apr 20 '15 at 02:58 PM

Thank you again Narg, I tried making everything inside my player bp but I couldnt do it specially for not being able to get static meshes for persistant level.

So just for clarify, the correct way would be Casting to my_menu bp from my widget's bp? I'll try that way and see if it works. For the moment everything is still the same. :(

avatar image Narghile Apr 20 '15 at 03:10 PM

In your world BP, cast yo your player, and pass details that way, instead of player casting to world bp.

To sum up, have every widget set as a reference at event begin and call those references.

Example about cast to widgets.

I had 1 widget that fired a staff member. I had a different widget for each staff type.

If i had looked at one widget and fired number 3, then went to next widget and fired number 2, it would fire number 3, because that is where the first reference was set.

If you cast to a widget and reference that widget, then delete and make a widget of the same name and pulled it back in, the reference will not reference the widget until I deleted the reference, and replaced all references.



(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question