Skip to content

ITextStudioTextBackend

InterfaceTextStudioTextStudio
public interface ITextStudioTextBackend

Stable identity and lifecycle contract for an optional text backend. Source, layout, and mesh responsibilities are split into additive interfaces so future backend features do not require changing this base contract.

void Attach(TextStudioText owner)

Attaches the backend to a host and begins observing its target.

Parameters

Name Type Description
owner TextStudio.TextStudioText Host that will issue backend requests.
void Detach()

Stops observation and releases backend-owned output state.

string BackendId { get; }

Gets the stable namespaced identifier persisted by backend selection.

Returns

System.String

string DisplayName { get; }

Gets the user-facing backend name.

Returns

System.String

int Priority { get; }

Gets the selection priority used when compatible backends compete.

Returns

System.Int32

bool IsAvailable { get; }

Gets whether the backend can currently drive its target.

Returns

System.Boolean

Object TargetObject { get; }

Gets the Unity object whose output is controlled by this backend.

Returns

UnityEngine.Object

TextStudioTextBackendCapabilities Capabilities { get; }

Gets the shaping, rendering, and editing features implemented by the backend.

Returns

TextStudio.TextStudioTextBackendCapabilities

event Action<TextStudioTextBackendChange> Changed

Occurs when text, layout, or mesh state changes outside the host pipeline.

Returns

System.Action{TextStudio.TextStudioTextBackendChange}