How to reuse styling of UMG widget

I am wondering if there a way how to actually share common looks for UI elements, eg. text color of the buttons. Think of it as CSS stylesheet for UMG.

I had found this related answer: What is the recommended way to reuse UMG Styles? - UI - Unreal Engine Forums

It’s all nice and sort of works, but it doesn’t show changes in designer. For example if I want to create a widget with single toolbar button to share common looks. Let’s say I want to be able change display text of the button. In graph of the button I do simply this.

https://cdn.pbrd.co/images/aArWFQd7L.png

I can then change the text when this widget is placed into actual toolbar, but sadly this isn’t reflected while designing widget. I see just bunch of buttons with same text there and need to actually hit Play to be able see end result.

Is there some way how to do that?

2 Likes

I am interested in this as well, is there a workflow for being able to see the construct changes without playing in editor???

You can use the Pre Construct callback inside the Widget Graph, and set the values there