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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Change a material instance property of ALL objects using it during runtime


I have a large area covered with trees using a procedural foliage spawner. I would like to simulate fall by changing a property in my leaves material instance (3 color parameter with an orange color that blends with the base texture).

When I open my material instance and change a parameter, every actor that uses this material changes realtime. Is there a way to do it like that but during runtime without having to go through all actors and change it one by one via a foreach loop?


Product Version: UE 4.21
more ▼

asked Mar 13 '19 at 10:26 PM in Blueprint Scripting

avatar image

107 11 17 26

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

1 answer: sort voted first

yes, materials can be changed at runtime via either a dynamic material instance or a material parameter collection.

dynamic material instancing may work depending on how you're set up, but if you want the same value across all of the trees then a parameter collection may be easier to implement since it can be change from anywhere without needing to get references.

more ▼

answered Mar 14 '19 at 08:20 AM

avatar image

1.2k 8 4 10

avatar image Bariudol Mar 14 '19 at 10:49 AM

Just to complement your answer. Here is the documentation for Material Parameter Collections, which is what I think @Elggetto needs:

avatar image Elggetto Mar 14 '19 at 06:03 PM

Okay thanks it worked! I was able to seamlessly blend between different leaves via umg.

(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