TextStudioDesignPresetAsset
public sealed class TextStudioDesignPresetAsset : ScriptableObjectReusable one-click design recipe that assigns established Text Studio appearance, writing, and behavior assets without adding another runtime ownership layer to the text component.
Methods
Section titled “Methods”
ApplyTo(TextStudioText)
Section titled “ApplyTo(TextStudioText)”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 |
Constructors
Section titled “Constructors”
TextStudioDesignPresetAsset()
Section titled “TextStudioDesignPresetAsset()”public TextStudioDesignPresetAsset()Properties
Section titled “Properties”
DisplayName
Section titled “DisplayName”public string DisplayName { get; }Returns
System.String
Description
Section titled “Description”public string Description { get; }Returns
System.String
SampleText
Section titled “SampleText”public string SampleText { get; }Returns
System.String
AppearanceStyle
Section titled “AppearanceStyle”public TextStudio2DStyleAsset AppearanceStyle { get; }Returns
TextStudio.TextStudio2DStyleAsset
WritingStyle
Section titled “WritingStyle”public TextStudioWritingStyleAsset WritingStyle { get; }Returns
TextStudio.TextStudioWritingStyleAsset
BehaviorProfile
Section titled “BehaviorProfile”public TextStudioBehaviorProfile BehaviorProfile { get; }Returns
TextStudio.TextStudioBehaviorProfile