Skip to content

TextStudio2DBevelSpec

StructTextStudioTextStudio
public struct TextStudio2DBevelSpec

Settings for beveled edge relief, lighting, highlight and shadow colors, and measurement units.

TextStudio2DBevelSpec(float, float, float, float, float, Color, Color, TextStudio2DUnit)

Section titled “TextStudio2DBevelSpec(float, float, float, float, float, Color, Color, TextStudio2DUnit)”
public TextStudio2DBevelSpec(float width, float softness, float depth, float lightAngle, float lightElevation, Color highlight, Color shadow, TextStudio2DUnit units = TextStudio2DUnit.Em)

Creates a bevel specification with the supplied edge relief, lighting, colors, and measurement units.

Parameters

Name Type
width System.Single
softness System.Single
depth System.Single
lightAngle System.Single
lightElevation System.Single
highlight UnityEngine.Color
shadow UnityEngine.Color
units TextStudio.TextStudio2DUnit

public TextStudio2DBevelSpec WithUnits(TextStudio2DUnit units)

Returns a bevel specification copy using the supplied measurement units.

Parameters

Name Type
units TextStudio.TextStudio2DUnit

Returns

TextStudio.TextStudio2DBevelSpec

public float Width { get; }

Returns

System.Single

public float Softness { get; }

Returns

System.Single

public float Depth { get; }

Returns

System.Single

public float LightAngle { get; }

Returns

System.Single

public float LightElevation { get; }

Returns

System.Single

public Color Highlight { get; }

Returns

UnityEngine.Color

public Color Shadow { get; }

Returns

UnityEngine.Color

public TextStudio2DUnit Units { get; }

Returns

TextStudio.TextStudio2DUnit