Skip to content

TextStudio3DGeneratedContourAsset

ClassTextStudio.ThreeDTextStudio.3D
public sealed class TextStudio3DGeneratedContourAsset : TextStudio3DContourSourceAsset

Reusable procedural backing source for contour programs.

Configure(TextStudio3DBackingShape, Rect, float, float, int)

Section titled “Configure(TextStudio3DBackingShape, Rect, float, float, int)”
public void Configure(TextStudio3DBackingShape shape, Rect bounds, float cornerRadius, float borderWidth, int cornerSegments)

Configures a generated rectangle, rounded rectangle, ellipse, capsule, frame, or banner with sanitized bounds and detail.

Parameters

Name Type
shape TextStudio.ThreeD.TextStudio3DBackingShape
bounds UnityEngine.Rect
cornerRadius System.Single
borderWidth System.Single
cornerSegments System.Int32
public override TextStudio3DContourValidationReport Validate()

Validates the source’s current contour data without modifying the asset.

Returns

TextStudio.ThreeD.TextStudio3DContourValidationReport

public override ContourState CreateContour()

Creates a detached contour snapshot that the caller may safely transform or combine.

Returns

TextStudio.ThreeD.ContourState

public TextStudio3DGeneratedContourAsset()

public TextStudio3DBackingShape Shape { get; }

Returns

TextStudio.ThreeD.TextStudio3DBackingShape

public Rect Bounds { get; }

Returns

UnityEngine.Rect

public float CornerRadius { get; }

Returns

System.Single

public float BorderWidth { get; }

Returns

System.Single

public int CornerSegments { get; }

Returns

System.Int32