x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.18
Tags:
more ▼

asked Feb 03 '18 at 02:45 AM in Bug Reports

avatar image

Sargas Evigmae
74 12 17 20

avatar image Jeff A ♦♦ STAFF Feb 12 '18 at 04:06 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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!

more ▼

answered Feb 09 '18 at 11:52 AM

avatar image

Animjo
1 1 1

avatar image Sargas Evigmae Feb 09 '18 at 02:09 PM

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.

avatar image Animjo Feb 09 '18 at 03:14 PM

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?

avatar image Sargas Evigmae Feb 09 '18 at 06:05 PM

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.

test.zip (1.1 MB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question