TextStudioReactionVisualSample
public readonly struct TextStudioReactionVisualSampleMotion and color of one retained unit in its source renderer’s local text space.
Fields
Section titled “Fields”
LocalOffset
Section titled “LocalOffset”public readonly Vector3 LocalOffsetReturns
UnityEngine.Vector3
LocalRotation
Section titled “LocalRotation”public readonly Quaternion LocalRotationReturns
UnityEngine.Quaternion
LocalScale
Section titled “LocalScale”public readonly Vector3 LocalScaleReturns
UnityEngine.Vector3
public readonly float AlphaReturns
System.Single
public readonly Color32 TintReturns
UnityEngine.Color32
Constructors
Section titled “Constructors”
TextStudioReactionVisualSample(Vector3, Quaternion, Vector3, float)
Section titled “TextStudioReactionVisualSample(Vector3, Quaternion, Vector3, float)”public TextStudioReactionVisualSample(Vector3 localOffset, Quaternion localRotation, Vector3 localScale, float alpha)Creates a retained-output transform sample with clamped opacity and a white tint.
Parameters
| Name | Type |
|---|---|
localOffset |
UnityEngine.Vector3 |
localRotation |
UnityEngine.Quaternion |
localScale |
UnityEngine.Vector3 |
alpha |
System.Single |
TextStudioReactionVisualSample(Vector3, Quaternion, Vector3, float, Color32)
Section titled “TextStudioReactionVisualSample(Vector3, Quaternion, Vector3, float, Color32)”public TextStudioReactionVisualSample(Vector3 localOffset, Quaternion localRotation, Vector3 localScale, float alpha, Color32 tint)Creates a retained-output transform sample with clamped opacity and the supplied tint.
Parameters
| Name | Type |
|---|---|
localOffset |
UnityEngine.Vector3 |
localRotation |
UnityEngine.Quaternion |
localScale |
UnityEngine.Vector3 |
alpha |
System.Single |
tint |
UnityEngine.Color32 |
Methods
Section titled “Methods”
NeedsColorUpdate(float, Color32)
Section titled “NeedsColorUpdate(float, Color32)”public bool NeedsColorUpdate(float lastAlpha, Color32 lastTint)Reports whether opacity or any tint channel differs from the previously submitted color state.
Parameters
| Name | Type |
|---|---|
lastAlpha |
System.Single |
lastTint |
UnityEngine.Color32 |
Returns
System.Boolean
ApplyColor(Color32)
Section titled “ApplyColor(Color32)”public Color32 ApplyColor(Color32 source)Multiplies a source color by this sample’s tint and opacity for retained-output rendering.
Parameters
| Name | Type |
|---|---|
source |
UnityEngine.Color32 |
Returns
UnityEngine.Color32