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 make dynamic material in a widget

Hi I would like to make a HUD for a FPS with a simple weapon Indicator. I have a function in my FirstPersonBP for the mouse wheels for the weapon selection who's sending the weapon selected in a variable, and I would like that my widget BP set the color of my material on screen. I try many differents way to change the color of my widget material but nothing working, so I ask , is it possible to have a image on a widget filled with a material that can change with a dynamic material instance, If yes how can i do it! I don't know if you will understand !

PS: Sorry for my bad english im French

Product Version: UE 4.18
Tags:
ue4question.png (402.8 kB)
ue4question1.png (428.2 kB)
more ▼

asked Feb 25 '18 at 05:10 PM in Rendering

avatar image

toffybiscuits
1 1 1 1

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

1 answer: sort voted first

alt text

just drag out the component that you want to change the material on and type set brush. You will have to right click on the dark blue pin and choose "split struct pin" to make the brush image pin show up

capture.png (94.5 kB)
more ▼

answered Feb 26 '18 at 01:23 AM

avatar image

ViceVersa
1k 64 50 98

avatar image F1uttershy Dec 15 '18 at 02:09 PM

No matter what material you chose, this will not work. alt text

mat.png (73.7 kB)
(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