ITextStudioTMPSetupProvider
public interface ITextStudioTMPSetupProviderEditor extension point that adds Text Studio setup actions for selected TextMeshPro targets. Implementations must have a parameterless constructor.
Methods
Section titled “Methods”
SupportsTargets(IReadOnlyList<TMP_Text>)
Section titled “SupportsTargets(IReadOnlyList<TMP_Text>)”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 |
Properties
Section titled “Properties”
DisplayName
Section titled “DisplayName”string DisplayName { get; }Gets the user-facing setup action label.
Returns
System.String
Tooltip
Section titled “Tooltip”string Tooltip { get; }Gets guidance shown for the setup action.
Returns
System.String
SortOrder
Section titled “SortOrder”int SortOrder { get; }Gets the ordering among compatible setup providers.
Returns
System.Int32