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
Can you post a picture of the logic that adds the item to the inventory array?
its because in tutorial pickup item actualy set hidden.Just replace in pickup logic to destroy actor.
So you got a solution to this? Because I get the same problem
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…
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.
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.
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.
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?
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: