Skip to content

TextStudioUITK

ClassTextStudioTextStudio
public static class TextStudioUITK

Attaches, retrieves, and detaches one weakly owned Text Studio binding per UI Toolkit text element.

public static TextStudioUITKBinding AttachTextStudio(this TextElement element)

Gets or creates a binding, attaches it to the element, and returns it for configuration.

Parameters

Name Type
element UnityEngine.UIElements.TextElement

Returns

TextStudio.TextStudioUITKBinding

public static TextStudioUITKBinding GetTextStudioBinding(this TextElement element)

Gets an existing binding without creating or attaching one.

Parameters

Name Type
element UnityEngine.UIElements.TextElement

Returns

TextStudio.TextStudioUITKBinding

public static void DetachTextStudio(this TextElement element)

Restores the element, releases scheduling, and removes its weak binding association.

Parameters

Name Type
element UnityEngine.UIElements.TextElement