Hello,
maybe I’m missing something, I’m just wondering what’s the best way to style custom elements with custom style properties.
I followed this guide: Unity - Manual: Create a custom style for a custom control
So far everything looks as expected, I’ve created a simple uss class to be able to set the custom styles for that element.
.custom-element-class {
--gradient-from: white;
--gradient-to: black;
}
I can also manually add these custom styles in the inlined style of the custom element, which is consistent to other styles.
My question is if it is possible to expose these custom styles to the UI Builder Inspector for editing. I can see the set values in the Matching Selectors section:
But those values are read-only.
The custom styles in the inlined style are not visible.
Are we really supposed to change the values by manually edit the uss files in the IDE?
Would be nice if there is a way to extend the UI Builder Inspector and be able to expose those custom styles to be edited.
Same for the uss class inspector, it’s only showing the default styles, but none of the custom ones.

