Back to API Reference
Interface
IGradientProvider
abstract
Implements:INamedCatalog<NamedGradient>
Resolves named NamedGradient entries for GradientModifier.
Remarks
Marker interface over INamedCatalog<TEntry> — exists to scope the [SerializeReference, TypeSelector] dropdown and to give a domain-specific name. Built-in implementations: InlineGradientProvider, AssetGradientProvider, GlobalSettingsGradientProvider. Custom providers should raise their
Changed event whenever their resolution result changes.Implementations(3)
Types that implement IGradientProvider.
CCC
AssetGradientProvider
[[IGradientProvider]] backed by an explicit [[UniTextGradients]] asset referenced on the modifier. Use this when a single component should resolve gradients from a different catalog than the project-wide one.
GlobalSettingsGradientProvider
[[IGradientProvider]] backed by the project-wide [[Gradients]] asset. Use this when the same gradient catalog is shared across all UniText components in the project.
InlineGradientProvider
[[IGradientProvider]] with an inline list of named gradients edited directly on the modifier. Use this for one-off catalogs that don't deserve a dedicated asset and aren't shared across components.
