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. 

Is it possible to compare two different dynamic materials?

As in the thread, is it possible or no?I want to compare their colors, but when i try to do it, the color is always false, even when the colors are the same.

Product Version: UE 4.8
more ▼

asked Sep 26 '15 at 09:05 AM in Blueprint Scripting

avatar image

24 6 7 8

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

1 answer: sort voted first


it is difficult to say without a picture of your material(s).

The first thought i had was:

Every variable in your material should be a parameter. Create a few variables outside of your materials and always update the parameters of your materials with your variables. In this case you can easily compare the variables outside of the materials.

The second thought... :D :

Change your materials into material functions and drive in/out parameters converted to be comparable.

If you use different materials and you want to compare just the color for each pixel things getting difficult:

This thread shows you how to do that but you have to write code:


more ▼

answered Sep 26 '15 at 12:48 PM

avatar image

662 62 54 116

avatar image R4c1o Sep 27 '15 at 07:30 AM

Here i've got my dynamic material blueprint: alt textalt text And i've got comapring color macro, and when i compare one dynamic material, to one color ( it's not dynamic, simple red, or blue) it's working, but when i try to compare two dynamic materials, it's always false, like the materials are different, but i know they are the same ( orange - orange, blue- blue)and i've got problem with that, maybe i've got something bad placed in my blueprint? alt text

image4144.png (288.2 kB)
image4155.png (296.3 kB)
image4146.png (372.3 kB)
image4144.png (288.2 kB)
avatar image R4c1o Sep 28 '15 at 04:28 PM

Can anyone help me solve this problem? I think the something is wrong in my blueprint, but i don't have any idea what. Thanks for any try of help! :)

(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