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"

Matierial Instance - detect if Param2D was changed

How can I tell if Param2D was changed by the Material Instance?

Basically I want to have 1 basic material, and then depending if user provides a texture or not - disable/enable certain properties (eg. if user provided metallic map - use it, otherwise input a copy of another param, if user provided specular map - use it, otherwise input constant, etc.)

Product Version: UE 4.14
Tags:
more ▼

asked Nov 20 '16 at 03:59 PM in Rendering

avatar image

MarcinW
60 7 8 12

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

1 answer: sort voted first

You should probably use a static switch for that, so a user has to mark a checkbox if he wants to use metalness map.

more ▼

answered Nov 20 '16 at 10:20 PM

avatar image

Deathrey
7.9k 130 31 293

avatar image MarcinW Nov 21 '16 at 03:17 PM

And how can I check if boolean was ticked or not? If statement works only on floats, and there is not == in material editor.

avatar image MarcinW Nov 21 '16 at 03:19 PM

Never mind, found it - I should be using "Switch".

(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