TextStudio2DStyles
public static class TextStudio2DStylesRegisters reusable appearances by their stable Tag ID. Runtime entries override the project catalog.
Methods
Section titled “Methods”
Register(TextStudio2DStyleAsset, bool)
Section titled “Register(TextStudio2DStyleAsset, bool)”public static void Register(TextStudio2DStyleAsset style, bool replaceExisting = false)Registers a style by its stable tag identifier, optionally replacing an existing runtime registration.
Parameters
| Name | Type |
|---|---|
style | TextStudio.TextStudio2DStyleAsset |
replaceExisting | System.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
| Name | Type |
|---|---|
id | System.String |
style | TextStudio.TextStudio2DStyleAsset |
Returns
System.Boolean
Unregister(string)
Section titled “Unregister(string)”public static bool Unregister(string id)Removes only a runtime override, revealing the project entry when present.
Parameters
| Name | Type |
|---|---|
id | System.String |
Returns
System.Boolean