Passing a Radial Gradient into a UDT

I have a UDT that I need to pass a color into it. But the color is of type Radial Gradient, how do you pass one of these, there is no type for this in the Custom properties. Binding to just a type ‘Color’ does not work unless you turn off the Radial Gradient optin in the ‘Fill paint’ property.

Sorry, there isn’t currently a way to pass around anything but normal colors. We can’t pass around more complex paints like gradients.

Your best bet will be to pass some sort of code which affects how things appear, perhaps by toggling visibility of different shapes.