FaceRelief3DSpec
public struct FaceRelief3DSpecControls the relief surface generated across the front cap.
Fields
Section titled “Fields”
[Tooltip("Face treatment. Flat keeps a planar cap; Chisel creates a carved ridge or engraved valley; Inflate creates a soft rounded face.")]public FaceRelief3DMode modeReturns
TextStudio.ThreeD.FaceRelief3DMode
amount
Section titled “amount”[Tooltip("Relief height in local units. Positive values move the surface outward from its cap, negative Chisel values engrave inward, and Inflate uses the absolute value as puff height.")][Range(-1, 1)]public float amountReturns
System.Single
subdivisions
Section titled “subdivisions”[Tooltip("Surface refinement used to resolve the face relief. Higher values improve curved highlights at additional topology cost.")][Range(1, 32)]public int subdivisionsReturns
System.Int32
profile
Section titled “profile”[Tooltip("Optional relief profile from glyph boundary (0) to its deepest interior (1). Leave empty for the mode's natural profile.")]public AnimationCurve profileReturns
UnityEngine.AnimationCurve
Methods
Section titled “Methods”
Chisel(float, int, AnimationCurve)
Section titled “Chisel(float, int, AnimationCurve)”public static FaceRelief3DSpec Chisel(float amount, int subdivisions = 8, AnimationCurve profile = null)Creates a faceted chisel relief whose profile moves a refined closed cap by the supplied depth amount.
Parameters
| Name | Type |
|---|---|
amount |
System.Single |
subdivisions |
System.Int32 |
profile |
UnityEngine.AnimationCurve |
Returns
TextStudio.ThreeD.FaceRelief3DSpec
Inflate(float, int, AnimationCurve)
Section titled “Inflate(float, int, AnimationCurve)”public static FaceRelief3DSpec Inflate(float amount, int subdivisions = 7, AnimationCurve profile = null)Creates a smooth inflated relief whose profile moves a refined closed cap by the supplied depth amount.
Parameters
| Name | Type |
|---|---|
amount |
System.Single |
subdivisions |
System.Int32 |
profile |
UnityEngine.AnimationCurve |
Returns
TextStudio.ThreeD.FaceRelief3DSpec
Properties
Section titled “Properties”
IsEnabled
Section titled “IsEnabled”public bool IsEnabled { get; }Returns
System.Boolean
public static FaceRelief3DSpec Flat { get; }Returns
TextStudio.ThreeD.FaceRelief3DSpec