I want to create a Level Editor in my game and part of it is, player needs to be able to pick colors for Actor materials, but there is no option for color picker in the default Widget Palette. Is there a native way to do this? Or if isn’t, then how do I do this?
Hi, I don’t know a native way, but in your widget you could create a Vector variable (name it Color) cause that will be the color you choose. Then create an Image and three Slider (the image as preview and the slider to change the color, three for R, G, B). Bind the “Color and Opacity” of your image and plug your variable Color in there. Create an “On Value Changed” Event for each of your three sliders and set the Color there.
I know about this, but thanks anyway for your time. I just wanted to know about something more like Editor Color Wheel. I think it looks nicer.
There already Color (8-bit integer based) and Linear Color (float based, once used for materials) types, this is what you should use.
There no picker widget for UMG, either oyu doing something yourself, here some tutorial i found (remeber you making UMG widgets, so oyu can make one for picking color and reuse else where):
Or use if C++ is not issue for you, make UMG widget based of Slate widget SColorPickerIt in Runtime folder so you can use it in game
its unbelievably frustrating that they haven’t provided us with a basic color picker widget.
Epic please…