# Remove Instance node works in editor but not in standalone game?

**URL:** <https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 21, 2018, 7:01pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174 "2018-01-21T19:01:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GhislainGir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ghislaingir/32/478507_2.png) [@GhislainGir](https://forums.unrealengine.com/u/GhislainGir)\
**Post date:** [January 21, 2018, 7:01pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/1 "2018-01-21T19:01:31Z")

</div>

Hello guys!

I’ve encountered a strange behavior with Remove Instance node.

The following blueprint is supposed to delete foliage instances around my character. It works just fine in the editor during play and/or simulation, but doesn’t in a standalone game. Remove instance node always return false in standalone game.

 ![bug image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/d/95d493f47c4948ea9e799615c2cd464b1d41d569.jpeg "bug")

I was able to replicate this behavior in a blank project using the third person template, a simple static mesh used as foliage and this blueprint added to the third person character blueprint.

Any ideas? I’m lost. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![GhislainGir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ghislaingir/32/478507_2.png) [@GhislainGir](https://forums.unrealengine.com/u/GhislainGir)\
**Post date:** [January 23, 2018, 7:10pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/2 "2018-01-23T19:10:10Z")

</div>

Tried a few things but I really don’t understand what’s the problem. Here’s an even simpler blueprint which just removes foliage instances around the player. It works fine in the editor but not in standalone…

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/1/f51ce2d3cc6abaf8406a7c4b791a18472a0c7531.jpeg)

edit : Oh I just found a similar thread that was suggested to me that I didn’t found during my search : [Remove instance not working with packaged project - Asset Creation - Unreal Engine Forums](https://answers.unrealengine.com/questions/733310/remove-instance-not-working-with-packaged-project.html)

Apparently you now have to use “Use dynamic Instance Buffer” on the foliage static mesh component that the foliage uses. So make a new blueprint from the original one and turn this on and apply it to your foliage and you should be able to remove instances during runtime.

---

<div class="post-metadata">

**Author:** ![Animjo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Animjo](https://forums.unrealengine.com/u/Animjo)\
**Post date:** [February 8, 2018, 8:02pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/3 "2018-02-08T20:02:57Z")

</div>

I’m sorry to ask, but how do I apply “Use dynamic instance buffer” to the default foliage actor?!

---

<div class="post-metadata">

**Author:** ![Tomas\_TDFM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tomas\_TDFM](https://forums.unrealengine.com/u/Tomas_TDFM)\
**Post date:** [February 23, 2018, 3:12pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/4 "2018-02-23T15:12:52Z")

</div>

Thank you for this!

@animjo: In Foliage section, click on some of your foliage in the list and under the mesh you will see drop down menu “Component Class”. Default is FoliageInstancedStaticMeshComponent. Click on magnifying glass and it will navigate you to this C++ Class in Engine Content, right click on it and select “Create Blueprint class based on…”, save file, open it and you will see option “Use Dynamic Instance Buffer”. Then apply this new Blueprint Class to your foliage (in Foliage section in that drop down menu under the mesh). Done and working 😉

---

<div class="post-metadata">

**Author:** ![Animjo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Animjo](https://forums.unrealengine.com/u/Animjo)\
**Post date:** [February 27, 2018, 3:02pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/5 "2018-02-27T15:02:11Z")

</div>

That’s awesome! Thanks!

---

<div class="post-metadata">

**Author:** ![Suundumused](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/suundumused/32/599389_2.png) [@Suundumused](https://forums.unrealengine.com/u/Suundumused)\
**Post date:** [March 30, 2021, 4:17am UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/6 "2021-03-30T04:17:50Z")

</div>

I didnt found "Use Dynamic Instance Buffer

---

<div class="post-metadata">

**Author:** ![Raz1789](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raz1789](https://forums.unrealengine.com/u/Raz1789)\
**Post date:** [March 31, 2021, 8:58pm UTC](https://forums.unrealengine.com/t/remove-instance-node-works-in-editor-but-not-in-standalone-game/415174/7 "2021-03-31T20:58:00Z")

</div>

I think they removed that variable during 4.20 update. I’m also struggle what is the alternative.
