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"

UMG Button Dynamic Material Parameters

Hey guys,

I'm having a hard time trying to change a Paramater Value for a dynamic material for a UMG button. Specifically, I have assigned a material to the Normal style of the button component. In my event graph, I try to access like this:

alt text

the "ButBuildThrasher" is the button reference. The problem occurs where I cast to Image which fails. I'm not sure how to hook up the get dynamic material from the slatebrush image output.

I have used this for reference: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/Styling/index.html

Thanks for any help!

Product Version: Not Selected
Tags:
more ▼

asked May 06 '15 at 03:48 PM in Using UE4

avatar image

Devero
2.3k 114 62 234

avatar image Noeticized May 08 '15 at 07:09 PM

I am also having problems using this method, as well as with Collection Parameters.

avatar image Devero Aug 16 '15 at 05:57 PM

Is there a way to do this? I'm also trying to do this on the ProgressBars.

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

1 answer: sort voted first

Ok, the way I did it for anyone else that has the problem. Create the dynamic material, apply it to the slatebrush, and store a reference to it. Then when you need to change it just use your reference to set the parameter. alt text

umgdynamic.jpg (703.3 kB)
more ▼

answered Aug 16 '15 at 06:20 PM

avatar image

Devero
2.3k 114 62 234

(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