Skip to content

ITextStudioTMPSetupProvider

InterfaceTextStudio.EditorTextStudio.Editor
public interface ITextStudioTMPSetupProvider

Editor extension point that adds Text Studio setup actions for selected TextMeshPro targets. Implementations must have a parameterless constructor.

bool SupportsTargets(IReadOnlyList<TMP_Text> targets)

Reports whether the provider can configure the complete target selection.

Parameters

Name Type
targets System.Collections.Generic.IReadOnlyList{TMPro.TMP_Text}

Returns

System.Boolean

AddToTargets(IReadOnlyList<TMP_Text>, bool, bool)

Section titled “AddToTargets(IReadOnlyList<TMP_Text>, bool, bool)”
void AddToTargets(IReadOnlyList<TMP_Text> targets, bool focusFirstCreated, bool recordUndo)

Configures each compatible target as one undoable editor operation when requested.

Parameters

Name Type
targets System.Collections.Generic.IReadOnlyList{TMPro.TMP_Text}
focusFirstCreated System.Boolean
recordUndo System.Boolean

string DisplayName { get; }

Gets the user-facing setup action label.

Returns

System.String

string Tooltip { get; }

Gets guidance shown for the setup action.

Returns

System.String

int SortOrder { get; }

Gets the ordering among compatible setup providers.

Returns

System.Int32