Back to API Reference
Class

UniTextSettings

sealed

Global settings ScriptableObject for UniText configuration.

Remarks

Access via Edit → Project Settings → UniText. Contains editor-only default configurations for new UniText components.
public static UniTextGradients Gradients{ get; set }

Gets or sets the named gradients asset.

public static UniTextSettings Instance{ get }

Gets the singleton settings instance, loading from Resources if needed.

public static StyledList<WordSegmentationDictionary> Dictionaries{ get }

Gets the configured word segmentation dictionaries.

public static string Language{ get; set }

Gets or sets the project-wide BCP 47 language tag. Applied to any codepoint that has no component-level UniText.Language and no per-range <lang> override.

public static int WorldBatcherShardTargetVertexCount{ get; set }

Target vertex capacity per shard in UniTextWorldBatcher. Groups of UniTextWorld components that exceed this threshold are split into multiple shards so that structural rebuilds of one shard do not touch the others.

public static void SetInstance(UniTextSettings settings)

Manually sets the singleton instance (used for testing or custom initialization).

public static Action Changed