Struct ColorTweenJob
Tween job implementation for tweening Color values.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public struct ColorTweenJob : ITweenJob<Color>, IJob
Properties
colorBlendAmount
Value between 0-1 used when determining how much to apply the blend processing.
Declaration
public float colorBlendAmount { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
colorBlendMode
Color BlendMode enum represented as a byte
Declaration
public byte colorBlendMode { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| byte |
jobData
Typed job data used in tween job.
Declaration
public TweenJobData<Color> jobData { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| TweenJobData<Color> |
Methods
Execute()
Perform work on a worker thread.
Declaration
public void Execute()
See Also
Execute()
IsNearlyEqual(Color, Color)
Function used to compare two values when evaluating a tween to determine if they're nearly equal in order to short-circuit the tween.
Declaration
public bool IsNearlyEqual(Color from, Color to)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | from | First value in equality comparison. |
| Color | to | Second value in equality comparison. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if values are nearly equal. |
Lerp(Color, Color, float)
Function used to interpolate between a tween's start value and target value.
Declaration
public Color Lerp(Color from, Color to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | from | Tween start value. |
| Color | to | Tween target value. |
| float | t | Value between 0-1 used to evaluate the output between the from and to values. |
Returns
| Type | Description |
|---|---|
| Color | Returns the interpolation from |