TextStudio3DContourProgram
[CreateAssetMenu(fileName = "New 3D Contour Program", menuName = "Text Studio/3D/Geometry/Contours/Contour Program", order = 109)]public sealed class TextStudio3DContourProgram : ScriptableObjectReusable ordered contour composition. It can begin from the incoming text contour, its fitted bounds, or a contour asset, then apply transformed operands and rectangular clips.
Methods
Section titled “Methods”
GetStep(int)
Section titled “GetStep(int)”public TextStudio3DContourProgramStep GetStep(int index)Returns one authored program step.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.ThreeD.TextStudio3DContourProgramStep
SetSource(TextStudio3DContourProgramSource, TextStudio3DContourSourceAsset)
Section titled “SetSource(TextStudio3DContourProgramSource, TextStudio3DContourSourceAsset)”public void SetSource(TextStudio3DContourProgramSource source, TextStudio3DContourSourceAsset sourceAsset = null)Selects whether evaluation starts from the input glyph, an empty contour, or a detached asset contour.
Parameters
| Name | Type |
|---|---|
source |
TextStudio.ThreeD.TextStudio3DContourProgramSource |
sourceAsset |
TextStudio.ThreeD.TextStudio3DContourSourceAsset |
SetBoundsSource(TextStudio3DBoundsContourSource, TextStudio3DTextBoundsComposition, float)
Section titled “SetBoundsSource(TextStudio3DBoundsContourSource, TextStudio3DTextBoundsComposition, float)”public void SetBoundsSource(TextStudio3DBoundsContourSource source, TextStudio3DTextBoundsComposition composition = TextStudio3DTextBoundsComposition.Backing, float embossDepth = 0.05)Configures text-bounds-derived source geometry and its glyph, backing, or combined composition policy.
Parameters
| Name | Type |
|---|---|
source |
TextStudio.ThreeD.TextStudio3DBoundsContourSource |
composition |
TextStudio.ThreeD.TextStudio3DTextBoundsComposition |
embossDepth |
System.Single |
SetSteps(params TextStudio3DContourProgramStep[])
Section titled “SetSteps(params TextStudio3DContourProgramStep[])”public void SetSteps(params TextStudio3DContourProgramStep[] steps)Replaces the authored operation sequence with a defensive array copy.
Parameters
| Name | Type |
|---|---|
steps |
TextStudio.ThreeD.TextStudio3DContourProgramStep[] |
Evaluate(ContourState)
Section titled “Evaluate(ContourState)”public ContourState Evaluate(ContourState inputContour)Evaluates the validated operation sequence and returns a detached result without mutating the input contour.
Parameters
| Name | Type |
|---|---|
inputContour |
TextStudio.ThreeD.ContourState |
Returns
TextStudio.ThreeD.ContourState: An empty contour when the program configuration is invalid.
Constructors
Section titled “Constructors”
TextStudio3DContourProgram()
Section titled “TextStudio3DContourProgram()”public TextStudio3DContourProgram()Properties
Section titled “Properties”
Source
Section titled “Source”public TextStudio3DContourProgramSource Source { get; }Returns
TextStudio.ThreeD.TextStudio3DContourProgramSource
SourceAsset
Section titled “SourceAsset”public TextStudio3DContourSourceAsset SourceAsset { get; }Returns
TextStudio.ThreeD.TextStudio3DContourSourceAsset
BoundsSource
Section titled “BoundsSource”public TextStudio3DBoundsContourSource BoundsSource { get; }Returns
TextStudio.ThreeD.TextStudio3DBoundsContourSource
BoundsComposition
Section titled “BoundsComposition”public TextStudio3DTextBoundsComposition BoundsComposition { get; }Returns
TextStudio.ThreeD.TextStudio3DTextBoundsComposition
EmbossDepth
Section titled “EmbossDepth”public float EmbossDepth { get; }Returns
System.Single
StepCount
Section titled “StepCount”public int StepCount { get; }Returns
System.Int32