Skip to content

TextStudio2DStyles

ClassTextStudioTextStudio
public static class TextStudio2DStyles

Registers reusable appearances by their stable Tag ID. Runtime entries override the project catalog.

public static void Register(TextStudio2DStyleAsset style, bool replaceExisting = false)

Registers a style by its stable tag identifier, optionally replacing an existing runtime registration.

Parameters

NameType
styleTextStudio.TextStudio2DStyleAsset
replaceExistingSystem.Boolean

TryGetDefinition(string, out TextStudio2DStyleAsset)

Section titled “TryGetDefinition(string, out TextStudio2DStyleAsset)”
public static bool TryGetDefinition(string id, out TextStudio2DStyleAsset style)

Attempts to resolve a non-null style asset by its registered tag identifier.

Parameters

NameType
idSystem.String
styleTextStudio.TextStudio2DStyleAsset

Returns

System.Boolean

public static bool Unregister(string id)

Removes only a runtime override, revealing the project entry when present.

Parameters

NameType
idSystem.String

Returns

System.Boolean