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 does not change visibility at first click

Hi, I building the UMG system of an app, and I found a problem, maybe a bug. I give you a description to replicate it.

First I have create a user pawn, at the event "beginplay" I set the "input mode to UI and Game", and "show the mouse" on. after from that I "create a widget" (UMG_Main) and place it on user screen.

I have build a widget: UMG_Main where I have some other user created widget that should become visible or collapsed. So I have created 2 new widgets to use there UMG_1 (visible) and UMG_2 (collapse) any case both of them do not overlap on the screen space. Finally I have create a 4th widget called UMG_button with a custom button to use in all the app. The button have a "event dispatcher" at "on clicked".

After that I have place that button at UMG_1 and UMG_2 and at UMG_Main I have created an "bind event" from "on clicked" dispatcher at UMG_button to activate a "custom event" that should collapse UMG_1 and make visible UMG_2

Now when I test it, when I press the button that should colapse the UMG_1 and make visible UMG_2 it only makes visible UMG_2. UMG_1 remain visible. If I click a second time, in that moment it finally colapse.

I have tried using hide instead of colapse, or the widget switcher but the result is the same.

I have also check about the visibility. after ask to colapse, I add a "is visible" and in case of false print a string. so after I press the first time even it do not collapse it print the string as it is not visible.

I guess more than a bug it is more a problem in my logic, so thanks for any idea about how to do this.

Product Version: UE 4.17
Tags:
more ▼

asked Aug 25 '17 at 03:23 AM in Blueprint Scripting

avatar image

geverk
36 1 10 9

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

2 answers: sort voted first

Hi, I have try with half opacity in the custom widgets UMG_1 and UMG_2,

Of course that does not change the problem but it makes evident what can be the problem.

once I click first time it seem the widget becomes more transparent, so seems that the problem is there widgets are duplicated, but not idea how that happens.

more ▼

answered Aug 25 '17 at 04:20 AM

avatar image

geverk
36 1 10 9

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

Finally I find that the problem was at the character pawn when I add the widget to the payer screen. I guess that is a bug, so I have report it here

So we can close this questions as solved :)

more ▼

answered Aug 28 '17 at 06:35 AM

avatar image

geverk
36 1 10 9

(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