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 apply material to all actors on play

Hi all,

I am just wondering if it is possible to choose a material (I.E. from player menu) and apply it to all meshes in game?

To expand upon this, I want the user to be able to go into an options screen, choose red, blue, green (whatever) from the menu (done this), and then when they press "play game" their chosen color is assigned to each instance of static meshes / actorsin the game world?

Product Version: UE 4.10
Tags:
more ▼

asked Nov 24 '15 at 12:04 AM in Blueprint Scripting

avatar image

FirstParadox
65 3 9 12

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

1 answer: sort voted first

Yes you can via material instance and material parameters too:

https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/MaterialInstances/index.html

You can also set one instance to multiple meshes and control material paremeters in all of them as result

more ▼

answered Nov 24 '15 at 01:16 AM

avatar image

Shadowriver
35.2k 921 166 1098

avatar image FirstParadox Nov 26 '15 at 03:32 AM

Thank you, problem solved.

(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