I was wondering what’s the best way to manage colors and ui styling in general across an Unreal project. To be specific, if I have a consistent background color that’s used across basically every widget. Instead of manually updating each instance, I’d like a system where I can define colors in one place and swap them out globally when needed.
So you would like the widget background color to be set automatically, but randomly for each one?
- widgets support inheritance. Define colours in the base class which has nothing in its hierarchy and have children tap into that.
- another option is to store colours as a game setting, the Game Mode framework class could work. Widgets could fetch that global value and update themselves.
- yet another way is to utilise slate
Brushes
andWidget Styles
@Cykablatta - think of it as a of a theme where the user can adjust their entire UI to be green-ish or blue-ish. Perhaps with a swatch / colour picker or presets.
1 Like
Check out Common Widgets (its plugin) it adds styles to most widgets. Also adds widget managment (optional).
2 Likes
Yeah, that’s alot of help. While, I haven’t seen exactly what I want in the thread, I’ve gotten ideas of how I can create the workflow I want for myself.