Skip to content

TextStudioGlyphQuadTransform

StructTextStudioTextStudio
public readonly struct TextStudioGlyphQuadTransform

Resolved transform for one glyph quad. Render backends use this to apply Text Studio placement, animation, pivot, color, and alpha consistently.

TextStudioGlyphQuadTransform(Vector3, Quaternion, Vector3, Vector3, Color32, byte)

Section titled “TextStudioGlyphQuadTransform(Vector3, Quaternion, Vector3, Vector3, Color32, byte)”
public TextStudioGlyphQuadTransform(Vector3 center, Quaternion rotation, Vector3 scale, Vector3 translation, Color32 colorOverride, byte alpha)

Creates a transform with translation, rotation, scale, color override, and alpha.

Parameters

Name Type
center UnityEngine.Vector3
rotation UnityEngine.Quaternion
scale UnityEngine.Vector3
translation UnityEngine.Vector3
colorOverride UnityEngine.Color32
alpha System.Byte

TextStudioGlyphQuadTransform(Vector3, Quaternion, Vector3, Vector2, Vector3, Color32, TextStudioColorBlendMode, float, byte)

Section titled “TextStudioGlyphQuadTransform(Vector3, Quaternion, Vector3, Vector2, Vector3, Color32, TextStudioColorBlendMode, float, byte)”
public TextStudioGlyphQuadTransform(Vector3 center, Quaternion rotation, Vector3 scale, Vector2 skew, Vector3 translation, Color32 colorOverride, TextStudioColorBlendMode colorBlendMode, float colorBlendWeight, byte alpha)

Creates a transform including skew and explicit color blending.

Parameters

Name Type
center UnityEngine.Vector3
rotation UnityEngine.Quaternion
scale UnityEngine.Vector3
skew UnityEngine.Vector2
translation UnityEngine.Vector3
colorOverride UnityEngine.Color32
colorBlendMode TextStudio.TextStudioColorBlendMode
colorBlendWeight System.Single
alpha System.Byte

public Vector3 ApplyPosition(Vector3 source)

Applies pivoted scale, skew, rotation, and translation to one source vertex.

Parameters

Name Type
source UnityEngine.Vector3

Returns

UnityEngine.Vector3

public Vector3 ApplyPosition(Vector3 source, Vector2 cornerOffset, float effectUnitScale)

Applies a per-corner effect-unit deformation before the glyph transform.

Parameters

Name Type
source UnityEngine.Vector3
cornerOffset UnityEngine.Vector2
effectUnitScale System.Single

Returns

UnityEngine.Vector3

public Color32 ApplyColor(Color32 source)

Applies evaluated alpha and sequential color composition to one source color.

Parameters

Name Type
source UnityEngine.Color32

Returns

UnityEngine.Color32