Skip to content

TextStudio3DContourProgramStep

StructTextStudio.ThreeDTextStudio.3D
public struct TextStudio3DContourProgramStep

Serializable parameters for one reusable contour-program operation.

[Tooltip("Boolean or clipping operation applied at this position in the program.")]
public TextStudio3DContourProgramOperation operation

Returns

TextStudio.ThreeD.TextStudio3DContourProgramOperation

[Tooltip("Reusable operand for Union, Subtract, and Intersect. Not used by Clip.")]
public TextStudio3DContourSourceAsset operand

Returns

TextStudio.ThreeD.TextStudio3DContourSourceAsset

[Tooltip("Local offset applied to the operand before the boolean operation.")]
public Vector2 offset

Returns

UnityEngine.Vector2

[Tooltip("Local counter-clockwise rotation applied to the operand before the boolean operation.")]
public float rotationDegrees

Returns

System.Single

[Tooltip("Local XY scale applied to the operand before the boolean operation. Both axes must be non-zero.")]
public Vector2 scale

Returns

UnityEngine.Vector2

[Tooltip("Axis-aligned local bounds used by Clip. Not used by boolean operations.")]
public Rect clipBounds

Returns

UnityEngine.Rect

Boolean(TextStudio3DContourProgramOperation, TextStudio3DContourSourceAsset)

Section titled “Boolean(TextStudio3DContourProgramOperation, TextStudio3DContourSourceAsset)”
public static TextStudio3DContourProgramStep Boolean(TextStudio3DContourProgramOperation operation, TextStudio3DContourSourceAsset operand)

Creates a union, difference, intersection, or exclusive-or step using an asset-backed operand.

Parameters

Name Type
operation TextStudio.ThreeD.TextStudio3DContourProgramOperation
operand TextStudio.ThreeD.TextStudio3DContourSourceAsset

Returns

TextStudio.ThreeD.TextStudio3DContourProgramStep

public static TextStudio3DContourProgramStep Clip(Rect bounds)

Creates a step that clips the current contour to an axis-aligned local rectangle.

Parameters

Name Type
bounds UnityEngine.Rect

Returns

TextStudio.ThreeD.TextStudio3DContourProgramStep