Skip to content

TextStudio3DLayer

StructTextStudio.ThreeDTextStudio.3D
public struct TextStudio3DLayer

Single layer in a Text Studio — 3D layer stack. Controls extrusion depth, bevels, depth-axis shaping, material assignment, and the layer’s topology mode.

Each layer has independent TextStudio.ThreeD.TextStudio3DLayer.frontBevel and TextStudio.ThreeD.TextStudio3DLayer.backBevel sub-structs — swap them out to produce ogee mouldings, knife edges, double chamfers, etc., without authoring a custom mesh.

[Tooltip("Display name for this layer.")]
public string name

Returns

System.String

public Contour3DSpec Contour { get; set; }

Gets or replaces contour selection and outline construction.

Returns

TextStudio.ThreeD.Contour3DSpec

public Front3DSpec Front { get; set; }

Gets or replaces front-cap construction.

Returns

TextStudio.ThreeD.Front3DSpec

public Edge3DSpec Edge { get; set; }

Gets or replaces bevel and boundary-edge construction.

Returns

TextStudio.ThreeD.Edge3DSpec

public Body3DSpec Body { get; set; }

Gets or replaces depth, sweep, and shell construction.

Returns

TextStudio.ThreeD.Body3DSpec

public Back3DSpec Back { get; set; }

Gets or replaces back-cap construction.

Returns

TextStudio.ThreeD.Back3DSpec

public Deformation3DSpec Deformation { get; set; }

Gets or replaces topology-stage depth deformation.

Returns

TextStudio.ThreeD.Deformation3DSpec

public Decoration3DSpec Decoration { get; set; }

Gets or replaces attached or emitted decorative geometry.

Returns

TextStudio.ThreeD.Decoration3DSpec

public Surface3DSpec Surface { get; set; }

Gets or replaces material assignments for the layer’s surface regions.

Returns

TextStudio.ThreeD.Surface3DSpec

public SurfaceMapping3DSet SurfaceMappings { get; set; }

Gets or replaces texture mapping for the default and overridden semantic surfaces.

Returns

TextStudio.ThreeD.SurfaceMapping3DSet

public Placement3DSpec Placement { get; set; }

Gets or replaces placement relative to neighboring layers.

Returns

TextStudio.ThreeD.Placement3DSpec

public StrokeSpec EffectiveStroke { get; }

Returns the first stroke in TextStudio.ThreeD.TextStudio3DLayer.strokes, or TextStudio.ThreeD.StrokeSpec.None when empty. The geometry generator emits at most one stroke per GenerateGlyphMesh call; the layer resolver flattens multi-stroke layers into per-stroke effective layers before geometry runs.

Returns

TextStudio.ThreeD.StrokeSpec

public bool Enabled { get; set; }

Controls whether this layer contributes geometry to the compiled style. Disabled layers retain their authored settings and can be enabled again later.

Returns

System.Boolean

public static TextStudio3DLayer Default { get; }

Returns

TextStudio.ThreeD.TextStudio3DLayer