I’ve got an image widget which I’d like to set dynamically at run time by using a material. I’m using the “Set Brush from Material” node but it is not working, regardless of what material I am inserting. If I set the brush by using “Set Brush from Image”, it works, but I can’t set any material parameters.
I am able to replicate this in an empty project.
Here is a screen shot of my node graph within UMG:
After reading over your issue I did a bit of digging and I have found that this is a known issue (UE-5975) I will provide updates with any pertinent information as it becomes available. Thank you for your information and time.
What I did is that I made a duplicate material just in the new material I set my base color into emission instead and checked “Used with UI”.
I can give some screenshots about the material and the bp later. But it’s pretty much what you have done. You just need to change the material parts that I said.
Edit: (Adding references)
Material Based Images
Materials can also be assigned as the Image asset for your Image States, but you will need to change a few settings. Inside the Material, in the Details panel under Usage, you will need to check the Used with UI checkbox. This enables compiling a different shader specifically for Slate. You also need to only output Emissive Color
Edit Showing it working:
This is when I have nothing chosen or when I got deco chosen (because we haven’t added deco yet.
By using “User Interface” Domain I’m not able to create metallic material for User Interface. Here is a screenshot of it. There is no input pin for metallic.
How do i create metallic material for user interface ?