Skip to content

TextStudioDesignPresetAsset

ClassTextStudioTextStudio
public sealed class TextStudioDesignPresetAsset : ScriptableObject

Reusable one-click design recipe that assigns established Text Studio appearance, writing, and behavior assets without adding another runtime ownership layer to the text component.

public void ApplyTo(TextStudioText target)

Assigns the recipe’s reusable assets to an existing component. Source text, inline tags, tag stacks, placement, renderer selection, and component-local settings remain untouched. Backends that own glyph styling retain the Appearance assignment without rendering it.

Parameters

Name Type
target TextStudio.TextStudioText

Configure(string, string, string, TextStudio2DStyleAsset, TextStudioBehaviorProfile)

Section titled “Configure(string, string, string, TextStudio2DStyleAsset, TextStudioBehaviorProfile)”
public void Configure(string displayName, string description, string sampleText, TextStudio2DStyleAsset appearanceStyle, TextStudioBehaviorProfile behaviorProfile)

Replaces the complete authored recipe definition.

Parameters

Name Type
displayName System.String
description System.String
sampleText System.String
appearanceStyle TextStudio.TextStudio2DStyleAsset
behaviorProfile TextStudio.TextStudioBehaviorProfile

public TextStudioDesignPresetAsset()

public string DisplayName { get; }

Returns

System.String

public string Description { get; }

Returns

System.String

public string SampleText { get; }

Returns

System.String

public TextStudio2DStyleAsset AppearanceStyle { get; }

Returns

TextStudio.TextStudio2DStyleAsset

public TextStudioWritingStyleAsset WritingStyle { get; }

Returns

TextStudio.TextStudioWritingStyleAsset

public TextStudioBehaviorProfile BehaviorProfile { get; }

Returns

TextStudio.TextStudioBehaviorProfile