Skip to content

FaceRelief3DSpec

StructTextStudio.ThreeDTextStudio.3D
public struct FaceRelief3DSpec

Controls the relief surface generated across the front cap.

[Tooltip("Face treatment. Flat keeps a planar cap; Chisel creates a carved ridge or engraved valley; Inflate creates a soft rounded face.")]
public FaceRelief3DMode mode

Returns

TextStudio.ThreeD.FaceRelief3DMode

[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 amount

Returns

System.Single

[Tooltip("Surface refinement used to resolve the face relief. Higher values improve curved highlights at additional topology cost.")]
[Range(1, 32)]
public int subdivisions

Returns

System.Int32

[Tooltip("Optional relief profile from glyph boundary (0) to its deepest interior (1). Leave empty for the mode's natural profile.")]
public AnimationCurve profile

Returns

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

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

public bool IsEnabled { get; }

Returns

System.Boolean

public static FaceRelief3DSpec Flat { get; }

Returns

TextStudio.ThreeD.FaceRelief3DSpec