I want to change the value of the print variable in the widget blueprint via a button in the editor utility widget

hello there, Im not sure what you mean but if you want to be able to change vars for your game while in game I would just make an in game widget and just delete it when your are done testing. It is just like a widget in game and string should work (Make sure Screen messages are on for strings to show)