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"

how to expose material usage property to material instance?

Hey guys. Benefit from tutorial, I made a material, and objects in the scene all adopt material instance of such material.Official documents have clarified merits by doing that way. But for me, what I benefit more is it dramatically reduces workload in material modification.

For instance, when I initially make such material, the material is relatively simple. By grasping more and more of UE4, and developing of UE4 itself, then I directly wrote the new functions into this material, then its material instance has inherited new function. By that way, there is no repeated workload and makes everything simple, no need to modify material one by one. What shown below is the material after many times modification. Of course, the modification never stops.

alt text

Although you’ve given well-meaning warning: limit amount of SaticSwtichParameter, but I use many static switch parameter, and its performance is good. And the speed is quicker than use material only---it is a great material system.

Thereupon, I hope skeletal mesh also uses the material instance of such material. But it can not. Static mesh and skeletal mesh can not use material instance of same material, because of different usage property of material.

alt text

So, I would like to ask, whether the usage property of material can be exposed to material instance? If yes, in that case, I can modify such property in material instance. And then static mesh and skeletal mesh can use material instance of same material.

Product Version: UE 4.20
Tags:
1.png (141.5 kB)
2.png (18.4 kB)
more ▼

asked Sep 14 '18 at 03:54 AM in Using UE4

avatar image

MICHELLEZHOU
1 1

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

1 answer: sort voted first

Unfortunately I do no think you can expose the usage to a material instance. You probably will just need to duplicate the material and make an instance of each one specifically for skeletal meshes and one for static meshes.

more ▼

answered Sep 18 '18 at 05:38 AM

avatar image

Steve SybrSyn
1.5k 4 5 9

avatar image MICHELLEZHOU Sep 20 '18 at 01:27 AM

Steve, thank you very much. Currently I adopt same way as recommended. But that way limits my working efficiency. If UE4 can optimize their engine, that would be perfect. Anyway, thank you very much for your 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