Skip to content

TextStudio2DShadowSpec

StructTextStudioTextStudio
public struct TextStudio2DShadowSpec

Settings for shadow offset, blur, spread, rendering method, and measurement units.

TextStudio2DShadowSpec(Vector2, float, float, TextStudio2DUnit)

Section titled “TextStudio2DShadowSpec(Vector2, float, float, TextStudio2DUnit)”
public TextStudio2DShadowSpec(Vector2 offset, float blur, float spread = 0, TextStudio2DUnit units = TextStudio2DUnit.Em)

Creates a shadow specification with the supplied offset, blur, spread, and units using distance-field rendering.

Parameters

Name Type
offset UnityEngine.Vector2
blur System.Single
spread System.Single
units TextStudio.TextStudio2DUnit

WithRendering(TextStudio2DSoftEffectRendering)

Section titled “WithRendering(TextStudio2DSoftEffectRendering)”
public TextStudio2DShadowSpec WithRendering(TextStudio2DSoftEffectRendering rendering)

Returns a shadow specification copy with the supplied rendering method.

Parameters

Name Type
rendering TextStudio.TextStudio2DSoftEffectRendering

Returns

TextStudio.TextStudio2DShadowSpec

public TextStudio2DShadowSpec WithTextWideBlur()

Returns a shadow specification copy configured to blur the complete text silhouette.

Returns

TextStudio.TextStudio2DShadowSpec

public TextStudio2DShadowSpec WithUnits(TextStudio2DUnit units)

Returns a shadow specification copy using the supplied measurement units.

Parameters

Name Type
units TextStudio.TextStudio2DUnit

Returns

TextStudio.TextStudio2DShadowSpec

public Vector2 Offset { get; }

Returns

UnityEngine.Vector2

public float Blur { get; }

Returns

System.Single

public float Spread { get; }

Returns

System.Single

public TextStudio2DSoftEffectRendering Rendering { get; }

Returns

TextStudio.TextStudio2DSoftEffectRendering

public TextStudio2DUnit Units { get; }

Returns

TextStudio.TextStudio2DUnit