TextStudioGlyphQuadTransformer
public static class TextStudioGlyphQuadTransformerShared quad-space transform utility for TMP-style render backends.
Methods
Section titled “Methods”
Create(Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float)
Section titled “Create(Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float)”public static TextStudioGlyphQuadTransform Create(Vector3 sourceCenter, in EvaluatedGlyphState state, in GlyphPlacement placement, bool usePlacement, float effectUnitScale, float alphaMultiplier)Builds a renderer transform from evaluated glyph state and optional placement.
Parameters
| Name | Type |
|---|---|
sourceCenter |
UnityEngine.Vector3 |
state |
TextStudio.EvaluatedGlyphState |
placement |
TextStudio.GlyphPlacement |
usePlacement |
System.Boolean |
effectUnitScale |
System.Single |
alphaMultiplier |
System.Single |
Returns
TextStudio.TextStudioGlyphQuadTransform
CreateFromQuad(Vector3, Vector3, Vector3, Vector3, Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float)
Section titled “CreateFromQuad(Vector3, Vector3, Vector3, Vector3, Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float)”public static TextStudioGlyphQuadTransform CreateFromQuad(Vector3 sourceVertex0, Vector3 sourceVertex1, Vector3 sourceVertex2, Vector3 sourceVertex3, Vector3 sourceCenter, in EvaluatedGlyphState state, in GlyphPlacement placement, bool usePlacement, float effectUnitScale, float alphaMultiplier)Builds a renderer transform using complete source quad geometry for custom pivot resolution.
Parameters
| Name | Type |
|---|---|
sourceVertex0 |
UnityEngine.Vector3 |
sourceVertex1 |
UnityEngine.Vector3 |
sourceVertex2 |
UnityEngine.Vector3 |
sourceVertex3 |
UnityEngine.Vector3 |
sourceCenter |
UnityEngine.Vector3 |
state |
TextStudio.EvaluatedGlyphState |
placement |
TextStudio.GlyphPlacement |
usePlacement |
System.Boolean |
effectUnitScale |
System.Single |
alphaMultiplier |
System.Single |
Returns
TextStudio.TextStudioGlyphQuadTransform
Apply(Vector3[], int, Color32[], int, Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float, Vector3[], int, Color32[], int)
Section titled “Apply(Vector3[], int, Color32[], int, Vector3, in EvaluatedGlyphState, in GlyphPlacement, bool, float, float, Vector3[], int, Color32[], int)”public static void Apply(Vector3[] sourceVertices, int sourceVertexIndex, Color32[] sourceColors, int sourceColorIndex, Vector3 sourceCenter, in EvaluatedGlyphState state, in GlyphPlacement placement, bool usePlacement, float effectUnitScale, float alphaMultiplier, Vector3[] destinationVertices, int destinationVertexIndex, Color32[] destinationColors, int destinationColorIndex)Transforms a bounded source vertex and color range into caller-owned destination buffers.
Parameters
| Name | Type |
|---|---|
sourceVertices |
UnityEngine.Vector3[] |
sourceVertexIndex |
System.Int32 |
sourceColors |
UnityEngine.Color32[] |
sourceColorIndex |
System.Int32 |
sourceCenter |
UnityEngine.Vector3 |
state |
TextStudio.EvaluatedGlyphState |
placement |
TextStudio.GlyphPlacement |
usePlacement |
System.Boolean |
effectUnitScale |
System.Single |
alphaMultiplier |
System.Single |
destinationVertices |
UnityEngine.Vector3[] |
destinationVertexIndex |
System.Int32 |
destinationColors |
UnityEngine.Color32[] |
destinationColorIndex |
System.Int32 |