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"

Widget doesnt update after Drag and Drop Operation

Hey guys.

I have a weird issue here.

After I drag and drop my custom UUserWidget it doesnt seem to be updated anymore.

My Widget contains an UOverlay which holds an Image and a TextBlock. It represents an Inventory Item which can be stacked.

When I drag an Item of the same type to another one they will be stacked together and the TextBlock updates itself

EDIT: Flip flopping the Visibility from Hidden to Visible still seems to work. But setting the Text does nothing anymore

A few Images to visualize my problems:

This is the default view of my Grid alt text

Now I drag the a medikit to the last one. The Text of the last one updates and shows 2 alt text

Now I drag it to another slot at the bottom alt text

Finally I drag another Item into the one at the bottom, but the Text doesnt update anymore. (The Text should be "3") alt text

I googled this issue and found a Bug Report, but it is stated as resolved. https://issues.unrealengine.com/issue/UE-31777 and https://issues.unrealengine.com/issue/UE-32910

I hope someone can help me with that problem Thank in advance for your answers :)

Product Version: UE 4.15
img1.png (559.6 kB)
img2.png (550.3 kB)
img3.png (560.2 kB)
img4.png (556.3 kB)
more ▼

asked Apr 25 '17 at 11:28 PM in Bug Reports

avatar image

Cloudy McStrife
465 13 16 38

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

1 answer: sort voted first

Hello Cloudy McStrife,

I have reopened the issue dealing with widget not updating after dragging and dropping them. I hope that this helps.

Link: https://issues.unrealengine.com/issue/UE-31777

Make it a great day

more ▼

answered Apr 26 '17 at 02:14 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image Cloudy McStrife Apr 26 '17 at 02:30 PM

Cool thank you :) Maybe I can help by providing some more information I gathered through debugging. I just saw that the problem exists because the Widget doesnt rebuild itself anymore When I close my Inventory and reopen it the Text shows the right number. This happens after RebuildWidget is called. Unfortunately it's a protected function so I cannot test my supposition.

Anyway thank you for reopening the issue :)

avatar image Death wyrm May 18 '17 at 11:50 AM

I have found a work around for this until it gets fixed (works in 4.13.2). But when you drop the widget, get the widget that is being dragged, get its class, and make a new widget from that. Then add that to the canvas/viewport and set its position.

If you have any variables which reference the widget you are moving, you are going to need a function that takes an input of the user widget, casts through all the available references you have until you find the right one, and sets the new widget to be that (and maybe does a refresh of the inventory as well for good measure).

(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