Skip to content

TextStudio3DContourProgram

ClassTextStudio.ThreeDTextStudio.3D
[CreateAssetMenu(fileName = "New 3D Contour Program", menuName = "Text Studio/3D/Geometry/Contours/Contour Program", order = 109)]
public sealed class TextStudio3DContourProgram : ScriptableObject

Reusable 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.

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[]
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.

public TextStudio3DContourProgram()

public TextStudio3DContourProgramSource Source { get; }

Returns

TextStudio.ThreeD.TextStudio3DContourProgramSource

public TextStudio3DContourSourceAsset SourceAsset { get; }

Returns

TextStudio.ThreeD.TextStudio3DContourSourceAsset

public TextStudio3DBoundsContourSource BoundsSource { get; }

Returns

TextStudio.ThreeD.TextStudio3DBoundsContourSource

public TextStudio3DTextBoundsComposition BoundsComposition { get; }

Returns

TextStudio.ThreeD.TextStudio3DTextBoundsComposition

public float EmbossDepth { get; }

Returns

System.Single

public int StepCount { get; }

Returns

System.Int32