Back to API Reference
Class

UniTextGradients

sealed

ScriptableObject containing named gradients for use with <gradient=name> tags.

Remarks

Create via Assets → Create → UniText → Gradients. Reference in UniTextSettings to make gradients available to all UniText components.

Nested Types

public IEnumerable<string> GradientNames{ get }

All gradient names exposed by this asset. Convenience over the generic Names.

protected override string GetEntryName()
public bool TryGetGradient()

Resolves a gradient by name (case-insensitive). Convenience over the generic TryGet.

public void Add()

Appends a named gradient by name + payload pair.

See Also