widget button to change object material - where to script the actions?

Game Mode:

Create widget in the MyHud:

And in the LevelBlueprint, for example:

lb.PNG
[HR][/HR]
You can, of course, create the widget directly in the level blueprint - but then accessing it from inside of other blueprints is a bit more difficult.