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"

Why is it putting 2 items in my inventory when I pick up an item in version 4.9?

I have been following the twitch stream tutorial for a drag and drop inventory in UMG which works as intended in version 4.8.3, however when I update it to version 4.9 it works but it will add the item to the inventory twice. I don't understand why it's doing it or how I can fix it. Any help would be greatly appreciated. Thanks, James

Product Version: UE 4.9
more ▼

asked Sep 05 '15 at 04:26 PM in Blueprint Scripting

avatar image

28 3 5 9

avatar image Nsomnia Sep 05 '15 at 04:41 PM

Can you post a picture of the logic that adds the item to the inventory array?

avatar image Innos Sep 10 '15 at 05:08 AM

So you got a solution to this? Because I get the same problem

avatar image ambhar Sep 10 '15 at 05:14 AM

Are you detecting the pickup on Hit event? It would be better if you add a sphere collision to your pickups and add item on its Overlap event.

avatar image Innos Sep 10 '15 at 05:17 AM

The item gets added on overlap event, but I get 2 items added when I pickup the item.. Basically, I get 2 pickup images when I pickup the item. Because I tried to get more than what inventory shows to be full and I could, so that means that 1 object is being added to the inventory but with two item images..

avatar image ambhar Sep 10 '15 at 06:02 AM

I faced this problem too. I just tried by adding a very small delay like 0.1, and it seems fine now. Please check at your end too.

avatar image Innos Sep 10 '15 at 06:06 AM

Can't do right now as I'm not at home, but adding a delay is not a fix if indeed it get's it fixed. Maybe some nodes changed in version 4.9 and need replacement?

avatar image ambhar Sep 10 '15 at 06:13 AM

I was facing this issue in 4.8 where I was adding coins on overlap but sometimes randomly it was adding 2 coins instead of 1. So I added a delay and this unknown issue stopped, though I agree delay is not a permanent fix for this, but seems in 4.9 the issue is there too. Delay is just a workaround untill we can get something better solution.

avatar image DizzyWes ♦♦ STAFF Sep 15 '15 at 03:39 PM

Would you be able to post screens of your Pickup Overlap events? I haven't been able to reproduce this issue just yet. Also, check out the following thread for the updated project:


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

1 answer: sort voted first

its because in tutorial pickup item actualy set hidden.Just replace in pickup logic to destroy actor.

more ▼

answered Sep 09 '15 at 07:07 PM

avatar image

1 1 2

(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