Skip to content

TextStudioDefaultSettings

ClassTextStudioTextStudio
public class TextStudioDefaultSettings : ScriptableObject

Global Text Studio defaults.

Text Studio does not ship a default settings asset. Users can optionally create one at Text Studio’s canonical Resources path to customize project-wide defaults; otherwise the hard-coded defaults below are used.

[Header("Defaults")]
[Tooltip("Default reveal mode for new text controllers.")]
public RevealMode defaultRevealMode

Returns

TextStudio.RevealMode

[Tooltip("Default placement mode for new text controllers.")]
public PlacementMode defaultPlacementMode

Returns

TextStudio.PlacementMode

[Header("Timing")]
[Tooltip("Default per-character reveal delay in seconds.")]
[Min(0)]
public float defaultCharDelay

Returns

System.Single

[Header("Diagnostics")]
[Tooltip("Log warnings when tag/effect lookups fail.")]
public bool warnOnMissingTags

Returns

System.Boolean

[Header("Authoring")]
[Tooltip("When adding a TextStudioText hub to a GameObject with no TMP_Text, auto-add a TextMeshPro / TextMeshProUGUI sibling.")]
public bool autoAddTMPOnHubReset

Returns

System.Boolean

public static void Refresh()

Force the singleton to re-read from the latest project settings. Called by the TextStudioProjectSettings import callback whenever its asset changes.

public TextStudioDefaultSettings()

public static TextStudioDefaultSettings Instance { get; }

Global default settings. If a TextStudioProjectSettings asset exists and has been loaded, its values are applied on top. Otherwise, the hard-coded defaults are used.

Returns

TextStudio.TextStudioDefaultSettings