Back to API Reference
Class

GradientNotifier

static

Broadcast channel for changes in any gradient source visible to GradientModifier. Fires when a UniTextGradients asset is edited, when an InlineGradientProvider's entries are changed in the inspector, or when a custom IGradientProvider implementation invokes NotifyChanged directly.

Remarks

GradientModifier subscribes during its active lifecycle and marks the owning UniText component dirty so colors are recomputed on the next rebuild. Custom providers that expose their own mutable state should call NotifyChanged when their resolution result changes.
public static void NotifyChanged()

Raises AnyChanged. Safe to call when there are no subscribers.

public static Action AnyChanged

Raised when any subscribed gradient source has changed. Subscribers should treat this as "invalidate cached gradient resolution and rebuild" — there is no per-source filtering.