How to interact with a specific actor when you spawn a bunch at once with a bp?
I have a code that allows me to spawn a randomized amount of static mesh in a random area/rotation. I'm wondering hypothetically when I use this bp how would I go about orienting, deleting, moving or scaling a single specific static mesh that is spawned within the group.
Attempting to click on one just highlights the whole group.
asked Dec 31 '18 at 11:37 PM in Blueprint Scripting
You could add them to an array, the array would be made of a struct of "Mesh, Transform". Then on the actor details panel you could work with that.
Why aren't you using the Foliage tool to create the trees though?
If you need the trees to be interactive in gameplay; You could replace the instances with an actor when the character interacts with the foliage.
answered Jan 01 '19 at 12:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here