# Procedural mesh component lost his collision in packaged project if manually placed into map

**URL:** <https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317>\
**Category:** Blueprint\
**Tags:** procedural-mesh-comp, UE4-13, unreal-engine, bug-report, Blueprint, question\
**Created:** [September 4, 2016, 9:37am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317 "2016-09-04T09:37:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 4, 2016, 9:37am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/1 "2016-09-04T09:37:17Z")

</div>

Hi,

i noticed a problem with Procedural Mesh Component, if i manually place an actor with it into the map it lost his collision in the packaged project.

This NOT happen if you spawn it in the map with a spawner.

**Step to reproduce**

**1)** Create a Blueprint actor with a Static Mesh and a Procedural Mesh Component and on event Begin Play use the “Copy Procedural Mesh from Static Mesh Component” node like this (remember to check “Allow CPUAccess” in the Static Mesh editor):

 ![105617-procdebug1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/a/64acf371a44fa986297df4023987cdcc4dfd6d1d.png)

**2)** Create a Blueprint actor as a spawner like this:

 ![105618-procdebug2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/0/bc0cec4bc06f714414de8ae42f68d3247bece721.png)

**3)** Place both in the map and play in editor, all collision will be ok, now package the project (or Launch on Desktop) and you will notice that the collision of manually placed actor is gone.

**Video demostration.**  
[https://www](https://www)…com/watch?v=hpW2LAvo4-o

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 7, 2016, 5:48pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/2 "2016-09-07T17:48:24Z")

</div>

Hi ZioYuri78,

- Does this occur in a clean, blank project with no additional content or is it limited to one project?
- Is this limited to one blueprint or any procedurally generated blueprint?
- What device are you packaging for?

---

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 7, 2016, 6:42pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/3 "2016-09-07T18:42:34Z")

</div>

1. Occur in my testbed project, replicated it in a clean, blank project with only starter content and still happen.

2. Happen with any procedural generated Blueprint, both if you use the “Copy Procedural Mesh from Static Mesh Component” node or the “Create Mesh Section” node, note that i checked the Create Collision checkbox in any case.

3. I’m packaging for Windows (64-bit), happen in both Development or Shipping buid configuration.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 13, 2016, 1:40pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/4 "2016-09-13T13:40:43Z")

</div>

If you remove the destroy component do you still see this occur? I receive a warning when I have the destroy component in PIE:

 ![106803-warning.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/b/babf50af3ea7dc165f8c750eb24fc2093c05c9ee.png)

I believe the error you are experiencing is probably due to this, if you don’t destroy the static mesh component it may work correctly.

---

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 13, 2016, 6:08pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/5 "2016-09-13T18:08:39Z")

</div>

You have this warning if you not check AllowCPUAccess in static mesh editor.

As i said last time i lost collision same if i made a simple Procedural Mesh Component from scratch with Create Mesh Section" node.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 14, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/6 "2016-09-14T14:15:10Z")

</div>

This has been the only error I’ve experienced on my end thus far. Do you have a sample project I can look at to see this in effect?

---

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 14, 2016, 6:58pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/7 "2016-09-14T18:58:03Z")

</div>

Of course, i made an example project, you can download it here  
[https://1drv.ms/u/s!AkT\_FprkHbUDgzGQGXbsRZK\_dWZ8](https://1drv.ms/u/s!AkT_FprkHbUDgzGQGXbsRZK_dWZ8)

meanwhile i discovered that if i move the code from BeginPlay to the Constructor Script all work fine, the problem persist if i generate the Procedural Mesh on BeginPlay and i manually place it into the map.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 15, 2016, 5:46pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/8 "2016-09-15T17:46:25Z")

</div>

It may be due to the immediacy of begin play, try adding a brief (.5 second) delay before your code in your begin play, do you see the same errors occur?

---

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 16, 2016, 3:05pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/9 "2016-09-16T15:05:04Z")

</div>

Done, it still lost the collision.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 16, 2016, 8:42pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/10 "2016-09-16T20:42:54Z")

</div>

Unfortunately, the project sent seems to be unable to package. Do you have a packaged version of the project you can send?

---

<div class="post-metadata">

**Author:** ![ZioYuri78](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zioyuri78/32/1194615_2.png) [@ZioYuri78](https://forums.unrealengine.com/u/ZioYuri78)\
**Post date:** [September 17, 2016, 7:35am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/11 "2016-09-17T07:35:49Z")

</div>

I re-uploaded the project, could be last time i deleted the wrong files to save bandwidth (i live in Italy and we still have potato adsl)

[https://1drv.ms/u/s!AkT\_FprkHbUDgzGQGXbsRZK\_dWZ8](https://1drv.ms/u/s!AkT_FprkHbUDgzGQGXbsRZK_dWZ8)

Here the packaged project

[https://1drv.ms/u/s!AkT\_FprkHbUDgzL-PJkO3UsXDNO7](https://1drv.ms/u/s!AkT_FprkHbUDgzL-PJkO3UsXDNO7)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [September 19, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/12 "2016-09-19T14:31:42Z")

</div>

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it [here](https://issues.unrealengine.com/issue/UE-36132). You can track the report’s status as the issue is reviewed by our development

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c2415351](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c2415351](https://forums.unrealengine.com/u/anonymous_user_0c2415351)\
**Post date:** [April 2, 2017, 12:50pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/13 "2017-04-02T12:50:16Z")

</div>

I had the same problem, no collision at all no matter how hard I tried until I edited collision on static mesh from which I copied the mesh.

I really cant tell you what exactly I have done, I just played with some settings here and it started to work (removed collision, applied again and so on, tried different types etc.).

 ![132528-collision_on_static_mesh.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/c/46cc37b70606151644d93df63b1e60cdea819353.jpeg)

---

<div class="post-metadata">

**Author:** ![vbs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vbs](https://forums.unrealengine.com/u/vbs)\
**Post date:** [August 18, 2017, 2:47pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/14 "2017-08-18T14:47:07Z")

</div>

I have a procedural mesh that I create with these instructions: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Procedural_Mesh_Component_in_C%2B%2B:Getting_Started)

While playing the game “Simulation”, “Standalone”, or “New Editor Window”, the mesh collides with the player object, but when "Launch"ing the game, no collision meshes seem to be present, and no collision takes place.

---

<div class="post-metadata">

**Author:** ![1343706751](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1343706751](https://forums.unrealengine.com/u/1343706751)\
**Post date:** [October 13, 2018, 5:28am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/15 "2018-10-13T05:28:50Z")

</div>

I used the runtime to draw something, but after I packed it, I couldn’t use it.

---

<div class="post-metadata">

**Author:** ![Maoyexing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maoyexing](https://forums.unrealengine.com/u/Maoyexing)\
**Post date:** [May 8, 2019, 1:33pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-lost-his-collision-in-packaged-project-if-manually-placed-into-map/369317/16 "2019-05-08T13:33:54Z")

</div>

Don’t call copy procedural mesh function in Construction,Add procedural mesh component and call “copy procedural mesh from static mesh component” in Event Begin Play.
