DepthShape
public struct DepthShapeDepth-axis shape modifiers applied to the body between bevels. These turn a straight extrusion into a tapered column, twisted shaft, or bulging pillar without changing the glyph silhouette at t=0 / t=1.
Fields
Section titled “Fields”
[Tooltip("Number of body sub-divisions between the front and back bevel rings. 0 or 1 emits a single strip (original behavior); higher values let taper, twist, and bulge modulate the body surface smoothly along Z.")][Range(0, 64)]public int stepsReturns
System.Int32
taperStart
Section titled “taperStart”[Tooltip("XY scale applied to the contour at the front-face end (z = -depth). One = full size. Less than one = contour shrinks toward the front. Used to build keystones, pyramids, art-deco stepped shapes, and bell-shape columns.")]public Vector2 taperStartReturns
UnityEngine.Vector2
taperEnd
Section titled “taperEnd”[Tooltip("XY scale applied to the contour at the back-face end (z = 0). One = full size.")]public Vector2 taperEndReturns
UnityEngine.Vector2
taperCurve
Section titled “taperCurve”[Tooltip("Optional easing curve remapping t along the depth before the taper lerp. Leave empty for linear.")]public AnimationCurve taperCurveReturns
UnityEngine.AnimationCurve
twistDegrees
Section titled “twistDegrees”[Tooltip("Total twist in degrees applied around the extrusion axis, distributed from front face (0°) to back face (twistDegrees°). Positive is CCW looking down +Z.")]public float twistDegreesReturns
System.Single
twistCurve
Section titled “twistCurve”[Tooltip("Optional easing curve remapping t along the depth before the twist lerp. Leave empty for linear.")]public AnimationCurve twistCurveReturns
UnityEngine.AnimationCurve
[Tooltip("Radial bulge amount in local units. Positive pushes the silhouette outward along the vertex bisector per ring, for barrel / pillow shapes; negative pulls inward for concave waist forms. Combines with bulgeCurve to shape the silhouette.")][Range(-0.1, 0.1)]public float bulgeReturns
System.Single
bulgeCurve
Section titled “bulgeCurve”[Tooltip("Curve that modulates bulge along the depth axis (t=0 back face .. t=1 front face). A classic barrel uses Ease(0,0,1,0) with a peak of 1 at t=0.5.")]public AnimationCurve bulgeCurveReturns
UnityEngine.AnimationCurve
Properties
Section titled “Properties”
HasAnyShaping
Section titled “HasAnyShaping”public bool HasAnyShaping { get; }Returns
System.Boolean
Identity
Section titled “Identity”public static DepthShape Identity { get; }Returns
TextStudio.ThreeD.DepthShape