Bug when Pickup and using Raycast

EVG

Member
Noticed this bug. When picking up items through the Pickup ability and using Raycast, then when quickly picking up items, when there are several of them nearby, more than necessary can rise.
 
My guess is that your pickup ability DoPickup function is invoked multiple times because of animation events.
My guess is that you have an animation for pickup with animation events, but in the editor you haven't set wait for animation event.

So either set to wait for animation events:

1654155823595.png

Or replace the pickup animation such without any animation events:
1654156030341.png

I hope that helps

Note that in UCC V3 we will fix this problem. Animation events won't trigger if "wait for animation event" is set to false, unfortunatly we cannot do this in UCC V2 because of breaking changes.
 
  • Like
Reactions: EVG
But I don't have pickup animations.
I solved the problem by changing Pickup Event and Pickup Complete Event Duration to 0, previously it was 0 and 0.2.
Thanks for the help!
 
Top