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"

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.

Product Version: UE 4.21
more ▼

asked Dec 31 '18 at 11:37 PM in Blueprint Scripting

avatar image

39 1 3 7

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

1 answer: sort voted first


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.

more ▼

answered Jan 01 '19 at 12:37 PM

avatar image

1.7k 8 4 8

avatar image PerCat Jan 01 '19 at 09:29 PM

I don't even know what a foliage tool is. I'm really new and all. So I wouldn't know what the difference in an instance and what I have is.

I'm trying to make it so it's random arrangement every time it's spawned and it works really well so far. Just want to be able to interact with specific ones.

(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