# Overlapping components / Pickup / Performance question ? (+ a bonus question youhou)

**URL:** <https://forums.unrealengine.com/t/overlapping-components-pickup-performance-question-a-bonus-question-youhou/102584>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 13, 2017, 9:03am UTC](https://forums.unrealengine.com/t/overlapping-components-pickup-performance-question-a-bonus-question-youhou/102584 "2017-11-13T09:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_01d7daf7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01d7daf7](https://forums.unrealengine.com/u/anonymous_user_01d7daf7)\
**Post date:** [November 13, 2017, 9:03am UTC](https://forums.unrealengine.com/t/overlapping-components-pickup-performance-question-a-bonus-question-youhou/102584/1 "2017-11-13T09:03:49Z")

</div>

Hey,

Maybe not a big deal here, but i’m just wondering some little question about performance.  
I was playing with a pickup system these last days (but no destroy actor node in it, is it better with it ?).

The aim is to make a pickup system where the pickup could be picked by several players but only one at a time.  
When a player is standing on it after the pickup was picked up, this one can’t re-appear.  
When the pickup stays 3 seconds without someone overlap itself, it reappears and reset the DoOnce so someone else can pick it up.

So here is the question : **What’s the best way to make it between both pictures below ?**  
Both are working, and I think there is no big difference in performance costs for one pickup like that, but let’s multiply these blueprints a bit, and what’s the best ?

- First one is using an integer variable that i increment or decrement for checking how many actors I got on my PickUpCollision Box
- Second one is using the GetOverlapping function and table.

 ![BP1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/c/7c5d7725e4f42362896231af6e05f1c481bad34c.png)

 ![BP2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/2/e225f87747743ce6c47fdc8f6888ae84d85eb7e6.png)

AND NOW… The Bonus Question !!! haha !

Well nothing directly linked with this question above, but linked with Blueprint, and I didn’t want to make a new topic for it. There is already another one existing here about this but no answer =(  
Here is the link : [https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/73587-difference-between-add-component-via-blueprint-and-editor](https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/73587-difference-between-add-component-via-blueprint-and-editor)

So, as this post says :  
**What’s the difference between the “Add component” button in the component panel and the “add component nodes” ?**  
**And why, when I add, let’s says a “AddArrowComponent” node in the Construction Script, this one doesn’t show up in the Component panel ?**  
(There is just the “Defaultsceneroot” component in the component panel and not the arrows, even though these ones are well-added)

 ![BP_add.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/c/1cba237eeefaec828af01d37b91de33cf239cc67.png)

It could have been convenient to see them directly there.  
Perhaps, I’m doing something wrong but I just wanted to know.

Thanks in advance !

Have a great day !
