TextStudio2DFauxDepthSpec
public struct TextStudio2DFauxDepthSpecSettings for silhouette extrusion direction, taper, falloff, edge softness, paint mapping, and contour lighting.
Constructors
Section titled “Constructors”
TextStudio2DFauxDepthSpec(Vector2, float, float, float, TextStudio2DUnit)
Section titled “TextStudio2DFauxDepthSpec(Vector2, float, float, float, TextStudio2DUnit)”public TextStudio2DFauxDepthSpec(Vector2 offset, float taper = 0, float falloff = 0, float softness = 0, TextStudio2DUnit units = TextStudio2DUnit.Em)Creates a faux-depth specification with the supplied extrusion offset, taper, falloff, softness, and measurement units.
Parameters
| Name | Type |
|---|---|
offset |
UnityEngine.Vector2 |
taper |
System.Single |
falloff |
System.Single |
softness |
System.Single |
units |
TextStudio.TextStudio2DUnit |
Methods
Section titled “Methods”
WithSilhouetteOutset(float)
Section titled “WithSilhouetteOutset(float)”public TextStudio2DFauxDepthSpec WithSilhouetteOutset(float silhouetteOutset)Expands the source contour before tracing depth so an extrusion can carry an outer stroke silhouette.
Parameters
| Name | Type |
|---|---|
silhouetteOutset |
System.Single |
Returns
TextStudio.TextStudio2DFauxDepthSpec
WithEndFade(float)
Section titled “WithEndFade(float)”public TextStudio2DFauxDepthSpec WithEndFade(float endFade)Fades the terminal portion of the extrusion while preserving its direction.
Parameters
| Name | Type |
|---|---|
endFade |
System.Single |
Returns
TextStudio.TextStudio2DFauxDepthSpec
WithPaintMapping(TextStudio2DFauxDepthPaintMapping)
Section titled “WithPaintMapping(TextStudio2DFauxDepthPaintMapping)”public TextStudio2DFauxDepthSpec WithPaintMapping(TextStudio2DFauxDepthPaintMapping paintMapping)Maps the layer paint either through its normal surface space or from the face toward the depth endpoint.
Parameters
| Name | Type |
|---|---|
paintMapping |
TextStudio.TextStudio2DFauxDepthPaintMapping |
Returns
TextStudio.TextStudio2DFauxDepthSpec
WithLighting(float, float, float, float, float)
Section titled “WithLighting(float, float, float, float, float)”public TextStudio2DFauxDepthSpec WithLighting(float sideLightAngle, float sideLightStrength, float frontBevelWidth = 0, float frontBevelStrength = 0, float farCapShade = 0)Adds contour lighting plus restrained near-face and far-cap depth responses.
Parameters
| Name | Type |
|---|---|
sideLightAngle |
System.Single |
sideLightStrength |
System.Single |
frontBevelWidth |
System.Single |
frontBevelStrength |
System.Single |
farCapShade |
System.Single |
Returns
TextStudio.TextStudio2DFauxDepthSpec
WithUnits(TextStudio2DUnit)
Section titled “WithUnits(TextStudio2DUnit)”public TextStudio2DFauxDepthSpec WithUnits(TextStudio2DUnit units)Returns a faux-depth specification copy using the supplied measurement units.
Parameters
| Name | Type |
|---|---|
units |
TextStudio.TextStudio2DUnit |
Returns
TextStudio.TextStudio2DFauxDepthSpec
Properties
Section titled “Properties”
Offset
Section titled “Offset”public Vector2 Offset { get; }Returns
UnityEngine.Vector2
public float Taper { get; }Returns
System.Single
Falloff
Section titled “Falloff”public float Falloff { get; }Returns
System.Single
Softness
Section titled “Softness”public float Softness { get; }Returns
System.Single
SilhouetteOutset
Section titled “SilhouetteOutset”public float SilhouetteOutset { get; }Returns
System.Single
EndFade
Section titled “EndFade”public float EndFade { get; }Returns
System.Single
PaintMapping
Section titled “PaintMapping”public TextStudio2DFauxDepthPaintMapping PaintMapping { get; }Returns
TextStudio.TextStudio2DFauxDepthPaintMapping
SideLightAngle
Section titled “SideLightAngle”public float SideLightAngle { get; }Returns
System.Single
SideLightStrength
Section titled “SideLightStrength”public float SideLightStrength { get; }Returns
System.Single
FrontBevelWidth
Section titled “FrontBevelWidth”public float FrontBevelWidth { get; }Returns
System.Single
FrontBevelStrength
Section titled “FrontBevelStrength”public float FrontBevelStrength { get; }Returns
System.Single
FarCapShade
Section titled “FarCapShade”public float FarCapShade { get; }Returns
System.Single
public TextStudio2DUnit Units { get; }Returns
TextStudio.TextStudio2DUnit