How to set widget blueprint image color from another actor

Hi, I’m trying to set a new image color from another actor. I’ve tried a different way to access image variable(since it’s only private) and set it to the new color, here’s is the latest logic that I got.

SomeActor->Event Graph

Widget Blueprint->Event Graph

Widget Blueprint->Hierarchy
Hierarchy

Play in Editor:

Where the TV(in front of player) have the widget component which having widget blueprint class on it.

So you can see in the red circle, it’s print ‘1’ which as I understand is my function work properly, so I’m wonder why the color is still white instead of red.

PS. I’m not English native speaker, sorry for my grammar🥹.

You’re creating a new separate widget and changing color, not the widget from the widget component.

To get the Widget from the Widget Component, Drag the WidgetComponent variable to the graph, drag from it and search for “Get User Widget Object”, then cast it’s output to “Your widget class”. Then you can use the output from the cast node to call the function and change color

Thank you so much for your help!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.