Remove Instance from InstanceFoliageActor only works on "Play in Editor"

You hit or overlap the InstanceFoliageActor on the level, cast to its FoliageInstanceStaticMeshComponents, and then RemoveInstance (OtherBodyIndex). It works while Playing in Editor, but doens’t either on “Standalone” nor after compiling the game. Now “Remove Instance” always fails in those cases.

I know for a fact It worked at least from 4.16 up to 18.2. But no longer works on 18.3, haven’t tried on the 4.19 previews.

I’ve added a sample project where I reproduce this bug on an empty 18.3 project: link text

The “Player” blueprint is handling the interaction. Just click on one of the cubes. It works as intended while playing in editor, but the “RemoveInstance” will always fail if you’re playing in StandAlone or with a packaged game.
It’s super weird really…

Hope anyone can help, my entire game is built around being able to do this :S

Hey! I am having the exact same issue. But I am using 18.0. How comes you are sure about that it’s working? I’ve read that we are supposed to turn “Use Dynamic Instance Buffer” in order to keep the foliage interactive in standalone/built, but I don’t understand how to apply that to the default foliageActor… Any new insights would help here… Thanks!

I’ve been using it since 4.16, and it worked up to 4.18.2. (my game is on steam too, and it works there. that has 18.2 ue4 version)
18.3 broke it. but the last 4.19 preview patch fixed it again (EDIT, IT DIDN’T), it wasn’t working there until yesterday.

Indeed, in 4.19 prev4 it finally removes instances successfully. Still having a problem though:
It doesn’t display/render any instances of that type as long as one of them is removed (took my a while to notice that there are still collisions). When I add another instance again, they are all visible again. Seems like it can’t update the change in component indexes or something…
Any ideas?

You’re right, it’s still not working… My mistake was that I tested it on a project where I made a custom solution… which means that was working was my solution, not the patch, lol.

Anyway, here’s the Project link text. It works because I’m making a copy of the foliage instances on another Actor (DestructionManager) which doesn’t seem to have any problems removing instances. It is just the InstanceFoliageActor that’s messed up at the moment.
I’m interacting with instances with the player controller. The DestructionManager is spawned by the GameMode.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks