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"

How do I recall a mesh instance created from a blueprint class?

Hello, I've made a class blueprint that spawns instances of a static mesh and positioned them in to a grid using the x, y, and z axes. So for example I'm able to create a grid of 1000 spheres positioned at equal distance from each other (10 x, 10 y, 10z). How do I recall a specific instance? For example I want to be able to select from the grid, the sphere positioned on x=3, y=4, z=2 and change his transformation or material etc.. I've looked in to Arrays but, even though it seems easy to store variables I can't find a way to store and recall mesh instances.

Any help would be hugely appreciated.

Thanks Matteo :)

Product Version: UE 4.16
Tags:
more ▼

asked Jul 13 '17 at 11:22 AM in Blueprint Scripting

avatar image

Macchelo
1 2 3 5

avatar image Macchelo Aug 30 '17 at 08:58 PM

Still haven't got an answer and it's been more than a month, please could anyone help me? I am completely blocked by this

avatar image TrentDiggy Nov 16 '17 at 05:12 AM

I don't believe you can directly reference an instance. I know this won't help much, but I remember reading somewhere would you could use a collision box, and in your case, spawn it at x=3, y=4, z=2 and search for the closest instance. Someone more knowledgeable can correct me.

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

1 answer: sort voted first

You can use Get Instances Overlapping Box/Sphere to get the indices of the instances. Then you can set their locations using Update Instance Transform.

more ▼

answered Nov 16 '17 at 06:38 PM

avatar image

JonathanLambert
56 4 7 13

(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