Variation is color scheme, it includes not only colors but sprites, textures, and fonts.
Variation names should be unique per
Options are lists of values from different variations with the same purpose.
Option names should be unique per the type of value of the
Attach Theme Exceptions
When you use Attach Theme some values are ignored and will have option
Image: null sprite
Image: white color on non-white sprite or sprites with
ui-themes-white-spritelabel (case insensitive)
Image: sprite with
Selectable: default colors
Text: null font
RawImage: null texture
But you can manually select option for properties with such values.
ID of the active variation.
bool SetActiveVariation(string name)
Set active variation by name. Return
falseif variation with specified name was not found.
Variation GetVariation(string name)
Get variation by name.
Variation GetVariation(VariationId id)
Get variation by ID.
Event fired when active variation or its values were changed.