# Box trace not detecting all components?

**URL:** <https://forums.unrealengine.com/t/box-trace-not-detecting-all-components/486758>\
**Category:** World Creation\
**Tags:** Trace, debug-trace, trace-channels, unreal-engine, question, box-overlap\
**Created:** [July 29, 2021, 4:22am UTC](https://forums.unrealengine.com/t/box-trace-not-detecting-all-components/486758 "2021-07-29T04:22:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RianeN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RianeN](https://forums.unrealengine.com/u/RianeN)\
**Post date:** [July 29, 2021, 4:22am UTC](https://forums.unrealengine.com/t/box-trace-not-detecting-all-components/486758/1 "2021-07-29T04:22:51Z")

</div>

Trying to use a MultiBoxTraceByChannel to detect if a component exists within the box, but it’s not working. There are two types of components, tree and grass. Tree is literally just a duplicate of grass, but with a different texture. Both have collisions set to block traces and so forth. The box appears correctly in the debug. The function is supposed to spawn a tree block in a location so long as no other tree block is nearby. However, it just isn’t detecting the tree blocks at all. Only grass.

 ![345115-capture3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/1/32187933d6540b2deae4ef708fb27a95ab6c6944.jpeg)

Here’s the blueprint. This was very simplified to text this.

> **[tree spawner posted by anonymous | blueprintUE | PasteBin For Unreal Engine 4](https://blueprintue.com/blueprint/siqomm07/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![UnrealSolver](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unrealsolver/32/1194693_2.png) [@UnrealSolver](https://forums.unrealengine.com/u/UnrealSolver)\
**Post date:** [July 29, 2021, 10:29am UTC](https://forums.unrealengine.com/t/box-trace-not-detecting-all-components/486758/2 "2021-07-29T10:29:04Z")

</div>

Make sure you have enabled:

**Generate Overlap Events**  **on every component** that has this feature (or better said - has any collisions)  
**Enable Multi Body Overlap** - this is not a muss here, hover over the option to read its description

2nd important thing - if the component (f.ex. a static mesh) has **no collisions assigned** it **will NOT be detected**
