UniTextSettings
Global settings ScriptableObject for UniText configuration.
Remarks
public static UniTextGradients Gradients{ get; set }Gets or sets the named gradients asset.
public static StylePreset GlobalStylePreset{ get; set }Project-wide StylePreset applied to every UniTextBase component without per-component opt-in. Behaves as one extra entry appended after each component's local StylePresets list, so local Styles and per-component StylePresets register first and win parse-rule conflicts.
public static UniTextSystemFont SystemFont{ get; set }Project-wide system font. Serves two roles, both via Default: the always-on final fallback that fills coverage gaps after the assigned fonts, and the primary for components with no Font and no Font Stack. When null, the OS default sans-serif fills both.
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 LineHeightMode DefaultLineHeightMode{ get; set }Project-wide default line-height mode applied to every component without a per-range override. Mirrored to DefaultLineHeightMode.
public static FontNormalizeMetric FontNormalizeMetric{ get; set }Project-wide default font normalization metric (CSS font-size-adjust), applied to each component's font provider on init. None matches platform defaults.
Target aspect for FontNormalizeMetric (metric ÷ font size); 0 matches the primary font.
public static void SetInstance(UniTextSettings settings)Manually replaces the singleton settings asset (used by tests and custom initialization paths). Raises Changed with the All sentinel — every reactive field is potentially different now, so subscribers should re-bind everything.
public static Action<string> ChangedRaised when a settings field is mutated. The argument is the property name (nameof(...)) of the field that changed, allowing subscribers to filter reactions surgically without per-component snapshot bookkeeping. The sentinel All means "the entire asset was replaced, re-read everything" and is fired by SetInstance. Inspector OnValidate fires one event per reactive field whose value differs from the last observed snapshot.
