TextStudio3DContourTubeProfile
[CreateAssetMenu(fileName = "New Contour Tube Profile", menuName = "Text Studio/3D/Geometry/Contours/Contour Tube Profile", order = 110)]public sealed class TextStudio3DContourTubeProfile : ScriptableObjectReusable closed cross-section swept along a glyph contour by TextStudio.ThreeD.ContourTube3DSpec. Points use normalized radial (X) and face-normal (Y) coordinates and are stored counter-clockwise.
Methods
Section titled “Methods”
GetPoint(int)
Section titled “GetPoint(int)”public Vector2 GetPoint(int index)Read one normalized cross-section point.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
UnityEngine.Vector2
SetPoints(Vector2[])
Section titled “SetPoints(Vector2[])”public bool SetPoints(Vector2[] points)Replace the closed cross-section. Invalid, self-intersecting, or over-sized input is rejected without modifying the asset. Clockwise input is normalized automatically.
Parameters
| Name | Type |
|---|---|
points |
UnityEngine.Vector2[] |
Returns
System.Boolean
Constructors
Section titled “Constructors”
TextStudio3DContourTubeProfile()
Section titled “TextStudio3DContourTubeProfile()”public TextStudio3DContourTubeProfile()Properties
Section titled “Properties”
PointCount
Section titled “PointCount”public int PointCount { get; }Number of closed cross-section points.
Returns
System.Int32
ShapeHash
Section titled “ShapeHash”public int ShapeHash { get; }Stable content hash used by style and glyph geometry caches.
Returns
System.Int32