Skip to content

TextStudio3DContourTubeProfile

ClassTextStudio.ThreeDTextStudio.3D
[CreateAssetMenu(fileName = "New Contour Tube Profile", menuName = "Text Studio/3D/Geometry/Contours/Contour Tube Profile", order = 110)]
public sealed class TextStudio3DContourTubeProfile : ScriptableObject

Reusable 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.

public Vector2 GetPoint(int index)

Read one normalized cross-section point.

Parameters

Name Type
index System.Int32

Returns

UnityEngine.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

public TextStudio3DContourTubeProfile()

public int PointCount { get; }

Number of closed cross-section points.

Returns

System.Int32

public int ShapeHash { get; }

Stable content hash used by style and glyph geometry caches.

Returns

System.Int32