I am currently creating an interface in UMG and I would like to create different styles for it, for example style_red, style_blue,… so that the main color of the UI is red or blue,…
I think it’s possible by “simply” putting a combobox and the choice of an item calls a function, in each blueprint of the project, which changes the style depending on the combobox item for example.
But this solution requieres that each blueprint has blocks to do things like :
if( style == "red") then (a lot of blocks to change all elements color in red) else if( style == "blue") then (a lot of blocks to change all elements color in blue) ...
and the blueprint can become very big!
So I would like to know if it’s possible to have a file per style (style_red.css for example, don’t know which extension it will be in UMG), and when I choose an item in the combobox, I load the corresponding file, and finally update the blueprints’s style whith that file.
In blueprint, a block to do something like :