Right approach to change materials of actors by widget

My widget is placed in an actor, maybe it has to do something with that?