Struct FloatTweenJob
Tween job implementation for tweening Float values.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Syntax
public struct FloatTweenJob : ITweenJob<float>, IJob
Properties
jobData
Typed job data used in tween job.
Declaration
public TweenJobData<float> jobData { readonly get; set; }
Property Value
Type | Description |
---|---|
TweenJobData<Single> |
Implements
Methods
Execute()
Perform work on a worker thread.
Declaration
public void Execute()
Implements
See Also
Execute()
IsNearlyEqual(Single, Single)
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(float from, float to)
Parameters
Type | Name | Description |
---|---|---|
Single | from | |
Single | to |
Returns
Type | Description |
---|---|
Boolean | Returns true if values are nearly equal. |
Implements
Lerp(Single, Single, Single)
Function used to interpolate between a tween's start value and target value.
Declaration
public float Lerp(float from, float to, float t)
Parameters
Type | Name | Description |
---|---|---|
Single | from | |
Single | to | |
Single | t | Value between 0-1 used to evaluate the output between the from and to values. |
Returns
Type | Description |
---|---|
Single | Returns the interpolation from |