StrokeSpec
public struct StrokeSpecParameters for the “true outline” stroke pass. When TextStudio.ThreeD.StrokeSpec.width is
greater than zero, the geometry generator replaces the layer’s source
silhouette with a ring-shaped silhouette that follows the glyph boundary at
the requested width. The result is a hollow annulus of material that - once
extruded - becomes a 3D tube hugging every edge of the glyph (exterior AND
counters of O, A, B, e, …), visible from every angle.
Unlike a scaled-backplate shortcut (a bigger solid glyph behind the main one), a stroke emits genuine ring geometry that can be independently beveled, twisted, tapered, swept along a path, or assigned its own material. A single layer may declare multiple strokes to produce concentric rings in one pass (classic comic-book / varsity looks), each with its own width, alignment, join style and material overrides.
Fields
Section titled “Fields”
public float widthReturns
System.Single
offset
Section titled “offset”public float offsetReturns
System.Single
alignment
Section titled “alignment”public StrokeAlignment alignmentReturns
TextStudio.ThreeD.StrokeAlignment
public BevelJoinType joinReturns
TextStudio.ThreeD.BevelJoinType
miterLimit
Section titled “miterLimit”public float miterLimitReturns
System.Single
faceMaterial
Section titled “faceMaterial”public Material faceMaterialReturns
UnityEngine.Material
backMaterial
Section titled “backMaterial”public Material backMaterialReturns
UnityEngine.Material
sideMaterial
Section titled “sideMaterial”public Material sideMaterialReturns
UnityEngine.Material
trimMaterial
Section titled “trimMaterial”public Material trimMaterialReturns
UnityEngine.Material
Methods
Section titled “Methods”
Outline(float, StrokeAlignment, BevelJoinType)
Section titled “Outline(float, StrokeAlignment, BevelJoinType)”public static StrokeSpec Outline(float width, StrokeAlignment alignment = StrokeAlignment.Center, BevelJoinType join = BevelJoinType.Miter)Creates an enabled outline stroke with the requested alignment and corner-join policy.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
alignment |
TextStudio.ThreeD.StrokeAlignment |
join |
TextStudio.ThreeD.BevelJoinType |
Returns
TextStudio.ThreeD.StrokeSpec
Outline(float, StrokeAlignment, BevelJoinType, Material)
Section titled “Outline(float, StrokeAlignment, BevelJoinType, Material)”public static StrokeSpec Outline(float width, StrokeAlignment alignment, BevelJoinType join, Material faceAndSide)Creates an enabled outline stroke and assigns one material to both its face and side regions.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
alignment |
TextStudio.ThreeD.StrokeAlignment |
join |
TextStudio.ThreeD.BevelJoinType |
faceAndSide |
UnityEngine.Material |
Returns
TextStudio.ThreeD.StrokeSpec
Properties
Section titled “Properties”
IsEnabled
Section titled “IsEnabled”public bool IsEnabled { get; }Returns
System.Boolean
public static StrokeSpec None { get; }Returns
TextStudio.ThreeD.StrokeSpec