Issues with "Set Brush from Material" node for widget image

Hello !

As I said in the title, I’m having an issue with the node “Set Brush from Material”. Here is a simple exemple of what I’ve done:

What happens here is that my widget disappears entirely after 2 second (deleting the rounded box border too).

I tried the node “Set Brush from Texture” and it works fine but I can’t really use it as I take the material info from an external actor.

I can’t really figure out where the problem comes from and and I’m not an Unreal expert but if you need more information, you can ask for it.

Thank you for reading and for your future help.

is your material set as User Interface?

1 Like

No he’s not, I tried with a new test Material and it works with User Interface Domain but the thing is at first my material has a Surface Domain.
Is there is any way to modifcate with a node the Material Domain ?

Why does it has a surface domain? Do you need it as a surface domain because you using this material somewhere else as surface? If so just duplicate the material and use each one as needed.

I’ll explain deeper my pb:

I’m creating a fighting card game. When I play a card and end my turn, an HUD appears and show me every attack I’ve played this turn.
So I’d like to get the card image reference (material surface because it’s an actor in the scene) and set it in my HUD in my “Attack Slot” so the player can see the incoming mooves.

You solved my Set Brush problem (thank you for that!) but I’m still blocked because I can’t find a way to avoid the creation of hundred of Material (Surface) + his Material (User Interface).

Does it exist a node that change the Material Domain ? :smiley:

no but you can create a dynamic material instance for the widget, then read the material that you use in the scene somehow and transfer the texture . its hard to help from outside but you definitely need two different materials for this. cant change domain at runtime.

1 Like