EvaluatedGlyphState
public struct EvaluatedGlyphStatePer-glyph evaluated animation state. Output of the animation evaluation pipeline. 8 channels with per-channel blend mode support.
Fields
Section titled “Fields”
positionOffset
Section titled “positionOffset”public Vector3 positionOffsetReturns
UnityEngine.Vector3
rotation
Section titled “rotation”public Quaternion rotationReturns
UnityEngine.Quaternion
public Vector3 scaleReturns
UnityEngine.Vector3
public float alphaReturns
System.Single
colorOverride
Section titled “colorOverride”public Color32 colorOverrideReturns
UnityEngine.Color32
colorBlendMode
Section titled “colorBlendMode”public TextStudioColorBlendMode colorBlendModeReturns
TextStudio.TextStudioColorBlendMode
colorBlendWeight
Section titled “colorBlendWeight”public float colorBlendWeightReturns
System.Single
colorMultiplier
Section titled “colorMultiplier”public Color colorMultiplierReturns
UnityEngine.Color
colorAdditive
Section titled “colorAdditive”public Color colorAdditiveReturns
UnityEngine.Color
uvOffset
Section titled “uvOffset”public Vector2 uvOffsetReturns
UnityEngine.Vector2
public Vector2 skewReturns
UnityEngine.Vector2
pivotOffset
Section titled “pivotOffset”public Vector2 pivotOffsetReturns
UnityEngine.Vector2
cornerOffsets
Section titled “cornerOffsets”public TextStudioCornerOffsets cornerOffsetsReturns
TextStudio.TextStudioCornerOffsets
customChannels
Section titled “customChannels”public TextStudioCustomChannelState customChannelsReturns
TextStudio.TextStudioCustomChannelState
currentPhase
Section titled “currentPhase”public AnimationPhase currentPhaseReturns
TextStudio.AnimationPhase
phaseProgress
Section titled “phaseProgress”public float phaseProgressReturns
System.Single
Identity
Section titled “Identity”public static readonly EvaluatedGlyphState IdentityReturns
TextStudio.EvaluatedGlyphState
Methods
Section titled “Methods”
Lerp(EvaluatedGlyphState, EvaluatedGlyphState, float)
Section titled “Lerp(EvaluatedGlyphState, EvaluatedGlyphState, float)”public static EvaluatedGlyphState Lerp(EvaluatedGlyphState a, EvaluatedGlyphState b, float t)Linearly interpolate between two states.
Parameters
| Name | Type |
|---|---|
a |
TextStudio.EvaluatedGlyphState |
b |
TextStudio.EvaluatedGlyphState |
t |
System.Single |
Returns
TextStudio.EvaluatedGlyphState
BlendColor(Color32, TextStudioColorBlendMode, float)
Section titled “BlendColor(Color32, TextStudioColorBlendMode, float)”public void BlendColor(Color32 target, TextStudioColorBlendMode mode, float weight)Composes a color operation with all color effects evaluated before it. RGB composition never increases glyph visibility; target alpha multiplies glyph alpha.
Parameters
| Name | Type |
|---|---|
target |
UnityEngine.Color32 |
mode |
TextStudio.TextStudioColorBlendMode |
weight |
System.Single |
ResolveColor(Color32)
Section titled “ResolveColor(Color32)”public Color32 ResolveColor(Color32 source)Applies the accumulated RGB transform to a renderer’s source vertex color.
Parameters
| Name | Type |
|---|---|
source |
UnityEngine.Color32 |
Returns
UnityEngine.Color32
Properties
Section titled “Properties”
public Vector2 Pivot { get; set; }Returns
UnityEngine.Vector2