TextStudio3DGeneratedContourAsset
public sealed class TextStudio3DGeneratedContourAsset : TextStudio3DContourSourceAssetReusable procedural backing source for contour programs.
Methods
Section titled “Methods”
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 |
Validate()
Section titled “Validate()”public override TextStudio3DContourValidationReport Validate()Validates the contour generated from the asset's current shape settings.
Returns
TextStudio.ThreeD.TextStudio3DContourValidationReport
CreateContour()
Section titled “CreateContour()”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
Constructors
Section titled “Constructors”
TextStudio3DGeneratedContourAsset()
Section titled “TextStudio3DGeneratedContourAsset()”public TextStudio3DGeneratedContourAsset()Properties
Section titled “Properties”
public TextStudio3DBackingShape Shape { get; }Returns
TextStudio.ThreeD.TextStudio3DBackingShape
Bounds
Section titled “Bounds”public Rect Bounds { get; }Returns
UnityEngine.Rect
CornerRadius
Section titled “CornerRadius”public float CornerRadius { get; }Returns
System.Single
BorderWidth
Section titled “BorderWidth”public float BorderWidth { get; }Returns
System.Single
CornerSegments
Section titled “CornerSegments”public int CornerSegments { get; }Returns
System.Int32