# Spawned Dynamic Mesh Component isn't hit by Line trace by channel

**URL:** <https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [March 23, 2023, 5:34pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287 "2023-03-23T17:34:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrilpr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyrilpr](https://forums.unrealengine.com/u/cyrilpr)\
**Post date:** [March 23, 2023, 5:34pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/1 "2023-03-23T17:34:55Z")

</div>

I’m spawning Dynamic Mesh Components at startup but when i try to clic on them with the mouse using line trace by channel they are not hit at all. (it’s working fine for pre runtime static meshes)

I tried to set Collision Enabled and Set Collision Response to All Channels (block) but it doesnt help.

when i add this dynamic mesh before runtime it’s working fine  
EDIT no it’s not working either

Any idea ?

---

<div class="post-metadata">

**Author:** ![juliocacko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juliocacko/32/1093281_2.png) [@juliocacko](https://forums.unrealengine.com/u/juliocacko)\
**Post date:** [March 23, 2023, 5:51pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/2 "2023-03-23T17:51:57Z")

</div>

Do you check if the Collision Enabled setting for your dynamically spawned mesh component is set to “Query and Physics”? Because this will ensure that the component can be queried by line traces

Besides, check if the Collision Response for the relevant channels is set to “Block” for your dynamically spawned mesh component. This will ensure that the line trace will be blocked by the mesh.

---

<div class="post-metadata">

**Author:** ![cyrilpr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyrilpr](https://forums.unrealengine.com/u/cyrilpr)\
**Post date:** [March 23, 2023, 6:01pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/3 "2023-03-23T18:01:31Z")

</div>

Here is what i’m doing:

[![Whats-App-Image-2023-03-23-18-17-13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/e/35ea59ccc5d1e132cb1cd84b437c20d1af405d5f.jpeg)](https://postimg.cc/GTLwrpYS)

---

<div class="post-metadata">

**Author:** ![juliocacko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juliocacko/32/1093281_2.png) [@juliocacko](https://forums.unrealengine.com/u/juliocacko)\
**Post date:** [March 23, 2023, 6:12pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/4 "2023-03-23T18:12:32Z")

</div>

Check if there is any issue in the Line Trace setup.

Because they are a similar [case](https://forums.unrealengine.com/t/line-trace-not-hitting-mesh-component/732316/7) with as that the issue

---

<div class="post-metadata">

**Author:** ![EarthHobbit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EarthHobbit](https://forums.unrealengine.com/u/EarthHobbit)\
**Post date:** [November 28, 2024, 9:01am UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/5 "2024-11-28T09:01:14Z")

</div>

Did you solve your issue finally ?

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 25, 2025, 3:35pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/6 "2025-06-25T15:35:55Z")

</div>

How do you SPAWN a dynamic mesh component? Is it visible？By the way, What is written in the construction script should not count as a Spawn

---

<div class="post-metadata">

**Author:** ![Holo\_Game](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Holo\_Game](https://forums.unrealengine.com/u/Holo_Game)\
**Post date:** [December 19, 2025, 3:12pm UTC](https://forums.unrealengine.com/t/spawned-dynamic-mesh-component-isnt-hit-by-line-trace-by-channel/811287/7 "2025-12-19T15:12:28Z")

</div>

I am spawning my mesh along a Spline (in Construction Script) via ‘‘Add Spline Mesh Component’’, linked to ‘‘Set Static Mesh’’.  
Adding the node ‘‘Set Collision Response to All Channels’’ (set as Block) from the ‘‘Add Spline Mesh Component’’ worked for me.

Good luck Devs!
