Hi,
There are 2 images of the button. I want this image to appear based on boolean value. If true, the green texture will appear, if false, the red texture will appear. how can I do that?
Thank you.
Regards
Hi,
There are 2 images of the button. I want this image to appear based on boolean value. If true, the green texture will appear, if false, the red texture will appear. how can I do that?
Thank you.
Regards
Create a boolean member variable on your widget.
Right-click the little triangle next to the texture slot in the properties of the image in the button. Select “bind to” a new function.
In the event graph for that new function, use a “select” node that takes the boolean value in, and plugs one of the two different textures into the output slot.