Back to API Reference
Interface

IGradientProvider

abstract

Resolves named Gradient entries for GradientModifier.

Remarks

Implementations decide where the gradient catalog lives — project-wide settings, an explicit asset reference, or an inline list edited per-modifier. Names are matched case-insensitively, matching <gradient=name> tag behavior.
public abstract bool TryGetGradient(string name, Gradient gradient)

Tries to resolve a name (as used in <gradient=name>) to a Gradient.

public abstract IEnumerable<NamedGradient> Enumerate()

Enumerates all gradients exposed by this provider. Used by editor tooling to populate the <gradient=…> dropdown for the modifier instance that owns this provider. Lazy or runtime-resolved providers may return an empty sequence.

See Also