# Only the first 128 instances of an instanced static mesh have collision when spawned in a blueprint

**URL:** <https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Instanced-Mesh, bug-report, Blueprint, question\
**Created:** [October 4, 2014, 9:41pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291 "2014-10-04T21:41:08Z")\
**Posts on this page:** 13\
**Page:** 2

<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:** [May 1, 2015, 5:02pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/21 "2015-05-01T17:02:07Z")

</div>

Collision is correctly set on the cube mesh. Attempt to do the same loop with the cube static mesh, do you see the collision error or warnings occur for you?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [May 1, 2015, 7:28pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/22 "2015-05-01T19:28:42Z")

</div>

I found why it does work for you: If I use the HillTree from the kite demo with default collision, I don’t get the Warning. But if I add some more collision shapes (I just duplicated the default one 2 times) then I get the warning! So you need to have more than one collision shape in the mesh.

I would also recommend to do the AddInstance once per tick and not all at once in the contruction script, because if you do it once per tick you also get the warning once per tick, it’s spamming the whole output log.

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [May 1, 2015, 8:53pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/23 "2015-05-01T20:53:31Z")

</div>

I’ve had this issue before with a single collision mesh, I’ll test it again in the latest build and if I can repro it again I’ll upload the project.

---

<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:** [May 5, 2015, 3:20pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/24 "2015-05-05T15:20:24Z")

</div>

Hi everyone,

I received warnings on objects with multiple collisions as John reported, however the collision itself still worked as intended. I have passed on the information of multiple collisions causing errors with instanced meshes and it is currently under assessment to see if it is a bug or if the error message is intended but not clear as to why the error is occurring, however the primary bug reported in this thread seems to be working as intended now.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [June 23, 2015, 3:27am UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/25 "2015-06-23T03:27:28Z")

</div>

The warnings are still in 4.8. I have not checked whether anything does not work, but the warnings are spamming the whole output log which is really ugly.

---

<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:** [June 24, 2015, 3:26pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/26 "2015-06-24T15:26:44Z")

</div>

Hi everyone,

I’ve entered a bug report, UE-17589, to be assessed by the development staff for the log spam. Having said that, most likely this error message is intended functionality and the reason it is spammed is because it produces one error per instance. I don’t have enough information to say whether or not it is actually a bug with the meshes or if the bug is because the error is unclear.

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [June 24, 2015, 3:47pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/27 "2015-06-24T15:47:25Z")

</div>

Thank you . I’d like to get some clarification on what causes the log spam if it is indeed intended functionality because if there is some underlying thing that we are doing improperly in regards to spawning instances it would be good to know that.

Thank you again.

---

<div class="post-metadata">

**Author:** ![kaitorched](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaitorched](https://forums.unrealengine.com/u/kaitorched)\
**Post date:** [November 25, 2015, 11:17am UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/28 "2015-11-25T11:17:33Z")

</div>

Hi, has this been fixed in a recent UE4 version? I’m still on 4.7.6 and have this issue. The warnings only appear with Instanced Static Meshes that have a Static Mesh set that has multiple collision parts. I didn’t count, but I’d say anything above 30 instances added to that ISM cause this. Collisions indeed don’t work when the warnings occur. As soon as I remove all but 1 collision parts from the Static Mesh that the ISM uses, the warnings (and collision problem) is gone.

My workaround would be to create separate ISMs for collision with one collision part per ISM, but that’s really ugly.

---

<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:** [November 25, 2015, 2:22pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/29 "2015-11-25T14:22:11Z")

</div>

Hi anteevy,

Unfortunately, our resources are currently dedicated elsewhere. I do not have a timeframe of when a fix will be made available.

---

<div class="post-metadata">

**Author:** ![kaitorched](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kaitorched](https://forums.unrealengine.com/u/kaitorched)\
**Post date:** [November 25, 2015, 10:26pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/30 "2015-11-25T22:26:24Z")

</div>

Too bad, but thanks for the quick reply.

Maybe you have some idea for a better workaround than the one I described? I’m importing a tilemap and the main problem lies with the corner tiles:

 ![68201-cornertile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/4/ed40c943933080d350ca729dbf90c93c7d2b6414.jpeg)

They require two convex collision parts because the corner can’t be covered with only one (would be too inaccurate) and if I understand concave collision parts are not supported, right? I also have tiles with 3 and 4 collision parts.

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [November 25, 2015, 10:35pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/31 "2015-11-25T22:35:23Z")

</div>

Just tossing my hat in the ring here to say I’d really like to see this fixed. Epic’s devoted a lot of resources to showing that UE4 can be used in large open world games, and this is a pretty nasty bug for anyone who’s using the engine for larger scenes.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [December 30, 2015, 11:37pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/32 "2015-12-30T23:37:15Z")

</div>

I agree. The bug was reported in October 2014, and now we almost have 2016. It should really be fixed.

---

<div class="post-metadata">

**Author:** ![Hyperloop](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hyperloop/32/1203427_2.png) [@Hyperloop](https://forums.unrealengine.com/u/Hyperloop)\
**Post date:** [December 30, 2015, 11:41pm UTC](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291/33 "2015-12-30T23:41:09Z")

</div>

It doesn’t make much sense, because really, what good are instances if they break after only 128 of 'em? This isn’t some edge case, it’s fundamental to the usefulness of instances.

[Previous page](https://forums.unrealengine.com/t/only-the-first-128-instances-of-an-instanced-static-mesh-have-collision-when-spawned-in-a-blueprint/295291.md?page=1)
