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 source’s current contour data without modifying the asset.
Returns
TextStudio.ThreeD.TextStudio3DContourValidationReport
CreateContour()
Section titled “CreateContour()”public override ContourState CreateContour()Creates a detached contour snapshot that the caller may safely transform or combine.
Returns
TextStudio.ThreeD.ContourState
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