Page 1 of 1

Color Picker with swatches on dockable UI

Posted: November 5th, 2019, 8:36 pm
by James VM

I've made a dockable UI panel and need to add adjustable color swatches to it. These swatches act like buttons, so when clicked they open the color picker and after a new color is selected, the swatch updates to the new color. I've managed to get the majority of it working thanks to these links :

However after selecting the new color, it doesn't update in my UI panel.

Is there a limitation with UI panels? Would appreciate any help getting this to work, thanks in advance! :)