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"

Can someone explain in layman terms how to set-up an emissive material to be toggled on /off with a key press?

Can someone explain in layman terms how to set-up an emissive material to be toggled on /off with a key press? I know there was a similar question asked before but I don't understand all the steps so I would appreciate if someone could explain the process step by step. Many thanks.

Product Version: UE 4.9
Tags:
more ▼

asked Nov 14 '15 at 09:55 PM in Blueprint Scripting

avatar image

Michal_w007
3 1

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

2 answers: sort voted first

You could try using a Material Paramter Collection and simply reference it in your character's blueprint and fire an event that uses it. Sorry for the lacking detail, I gotta leave, but figured this could get you started.

Edit: Got an extra minute, haha. Set up a Material Paramater Collection that has one Scalar Value, call it something like "EmissiveMultiplier" and in your texture, use that scalar and multiply it by your emissive texture and plug the result of the multiplication into the emissive value. This way, you can use "0" for off and "1" for on.

more ▼

answered Nov 14 '15 at 10:07 PM

avatar image

zacharymwade
554 27 4 25

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

Thank you so much zacharymwade! Got it working in 5 minutes! Sooooooo much easier than the approach I had tried before: https://answers.unrealengine.com/questions/34566/light-switch-animate-emissive-color-intensity-in-b.html

Great stuff. Thanks again.

more ▼

answered Nov 14 '15 at 10:30 PM

avatar image

Michal_w007
3 1

avatar image zacharymwade Nov 14 '15 at 10:32 PM

If you could click the little check mark by my answer, I'd appreciate it. It helps other people know this has been answered and gives them the answer if they look it up. Glad I could 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