x

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 not working when loaded from other level

Im trying to create a multiplayer lobby using umg buttons. The buttons work to move from one level to the next but when the level is loaded through the "open level" blueprint command the umg buttons onclick doesn't fire. i.e. If im in the editor on the main level and the main menu is loaded all the buttons work 100% but when i click on the host button the lobby level is loaded and the lobby widget is loaded but the buttons doesn't work, and the same case with the reverse when i start on the lobby level all the lobby buttons work 100% but when i load the main level the main menu widget is loaded but the buttons doesn't work. I probably just did some thing wrong. Any help will be appreciated.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 07 '15 at 09:23 PM in Blueprint Scripting

avatar image

Sajuuk
11 2 1

avatar image Sajuuk Dec 07 '15 at 10:31 PM

When i run the editor as stade alone it works fine, but then i can only launch one process at a time and i cant test the network

avatar image ethwaites Mar 04 '17 at 12:52 AM

I am also having this issue an so far haven't found a solid lead on it. Using 4.14 currently, did you find a solution?

avatar image SalihBalkan Jun 08 '17 at 12:42 PM

I can't believe this issue is still not resolved. Our players can't use any buttons after a few level changes. We are using 4.15.2.

Please move this to Bug Reports if you can.

avatar image Sajuuk Jun 12 '17 at 09:23 AM

I have not worked on UE in weeks, I will try and move to Bug report so it can be investigated. But as you can see I made this post in 2015.... so It might have been fixed.

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

5 answers: sort voted first

When the level load you may have to set the UI mode to UI and game again with focus on the widget.

more ▼

answered Jun 09 '17 at 12:23 AM

avatar image

keyle
1.8k 65 27 89

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

Hello Sajuuk,

It's look like focus problem like keyle said. Can you check it ?

Here

widgetfocus.png (76.6 kB)
more ▼

answered Jun 09 '17 at 08:12 AM

avatar image

Sertac Ogan
1.5k 30 10 46

avatar image Sajuuk Jun 12 '17 at 09:24 AM

I will try as soon as I can and get back to you, but I cant promises that I will be able to check this out any time soon

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

UP, got the same problem and adding set input mode doesn't change anything to this "bug"

more ▼

answered Feb 14 '19 at 10:44 PM

avatar image

G0ogle
8 2 5

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

Have you checked the Z-order in your add to viewport issues?

more ▼

answered Feb 14 '19 at 11:17 PM

avatar image

Crowley Caine
643 8 9 15

avatar image G0ogle Feb 14 '19 at 11:30 PM

Just tried and doesn't work :(

avatar image Crowley Caine Feb 14 '19 at 11:57 PM

Expanding the add to viewport and increasing z order is usually the fix for a lot problems. Also opening/closing widgets can fire functionality. Quick hide/show on level entry.

Let's see what else... if it's a generated widget recall the generate function on level load if you have one... slight delay after load might also help, start off with a big one and tune down as needed of it fixes the issue.

avatar image G0ogle Feb 15 '19 at 12:26 AM

What do you mean with "expanding the aadd to viewport" ? I've tried the other things you've said and it still does not work sadly, i'll try combining them differently or whatever might work.

avatar image Crowley Caine Feb 15 '19 at 12:28 AM

The add to viewport node has a little arrow you can click that expands it and lets you set z order. The higher the more in front it is.

avatar image G0ogle Feb 15 '19 at 12:30 AM

I've posted my issue hours ago with screenshots so it'll be easier to unterstand what happens. https://answers.unrealengine.com/questions/874524/view.html

avatar image G0ogle Feb 15 '19 at 12:40 AM

Ok seems like it's working now with a little bit of delay ! I first placed it in the wrong place but now it's all good ! I had no clue this could play a role in level loading and all ! Thanks a lot, you are saving me hours of sleep haha !

avatar image Crowley Caine Feb 15 '19 at 12:42 AM

No problemo, short delays can fix a lot of things on event begin play etc. Just mask it with a loading screen if you need.

Be sure to mark it as solved.

avatar image G0ogle Feb 15 '19 at 12:47 AM

Roger that ! Loading screen is the next step. I can't mark the topic as resolved as it's not mine and a old one :( Thanks again !

avatar image Crowley Caine Feb 15 '19 at 12:50 AM

No worries, doesn't matter. Glad you managed to fix it. As a loading screen I'd just do a black screen with your game logo or just name in text or simply [Loading] as a placeholder and worry about polish like that after the game has full functionality.

Heck put a dirty joke or Scarlett Johansson on there just for fun until later.

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

This problem won't occur anymore in 4.20. Steps to reproduce in 4.16:

  1. Open your Multiplayer game in mobile

  2. While connecting to a multiplayers server, touch your finger to anywhere in the screen

  3. After you connect, try touching anywhere. Result: Nothing will happen.

more ▼

answered Feb 15 '19 at 08:03 AM

avatar image

SalihBalkan
424 15 28 58

(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