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 contour generated from the asset's current shape settings.

Returns

TextStudio.ThreeD.TextStudio3DContourValidationReport

public override TextStudio3DContourSet CreateContour()

Read the asset on the main thread, then retain its immutable snapshot for workers. Retained snapshots remain valid after the asset changes.

Returns

TextStudio.ThreeD.TextStudio3DContourSet

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