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 can I work with items of static mesh array?

Hi. I want to know how can I work with items of static mesh array. For example, change visibility of specific item, especially switch material of specific item. Thanks.

Product Version: UE 4.9
more ▼

asked Oct 22 '15 at 08:28 AM in Blueprint Scripting

avatar image

1 2 1

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

1 answer: sort voted first

If you have an array of static meshes, you have to determine the index of the static mesh you want to manipulate.

If you already have your index, then you can use the array get node and supply your index, and then you can use things like Set Visibility on that resulting node.

If you don't have your index, you have to figure out the logic for determining said index. If you want a mesh with a certain name for example, you can run a for each loop with break and check every element to see if it matches your condition, i.e. contains your specified name. If it matches, you can then do what you want to do with that array element.

more ▼

answered Oct 22 '15 at 02:39 PM

avatar image

3.1k 51 121 487

avatar image OmidCG Oct 23 '15 at 06:58 AM

Thanks Allar. But, Can you take screenshot for me? I do this, but it's not work. alt text

problem.jpg (121.0 kB)
(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