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"

Material Slots Order

Hi, I've created a blueprint for a procedural house but I've a problem with material slots: I added into the blueprint an array with different kind of houses that have multiple material slots. The problem is that the order of the material slots is different for each mesh, for example: In the first mesh the walls material is placed in "material slot 0" but in the second mesh the same material is placed in "material slot 1". I also added into the blueprint some nodes that allow me to change the materials but if I change the material in the "material slot 0" of the first mesh it's apply that material in the wrong material slot of the other meshes. I already tried to fix this problem adding as much Set Material nodes as the meshes are but doing this I have an infinity of nodes just to change the materials. What I need to know if there is a way to change the order of the material slots. Someone could help me please? Thanks in advance!

Product Version: UE 4.16
Tags:
more ▼

asked Jan 28 '18 at 05:57 PM in Using UE4

avatar image

JackBurnMad
31 2 2 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

If you use Set Material by Name it should not matter in which slot the material is as long as the name matches. So if the name of the wall slot is "Wall" for all meshes, it will change all the walls.

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Rendering/Material/SetMaterialbyName/

more ▼

answered Jan 28 '18 at 06:07 PM

avatar image

vr_marco
2.2k 10 6 12

avatar image JackBurnMad Jan 28 '18 at 08:25 PM

Thank you so much for help!

(comments are locked)
10|2000 characters needed characters left
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