Interface ITweenJob<T>
Interface representing a tween job's basic functions.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Syntax
public interface ITweenJob<T> : IJob where T : struct
Type Parameters
| Name | Description |
|---|---|
| T | Struct type of tween output. |
Properties
jobData
Typed job data used in tween job.
Declaration
TweenJobData<T> jobData { get; set; }
Property Value
| Type | Description |
|---|---|
| TweenJobData<T> |
Methods
IsNearlyEqual(T, T)
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
bool IsNearlyEqual(T from, T to)
Parameters
| Type | Name | Description |
|---|---|---|
| T | from | First value in equality comparison. |
| T | to | Second value in equality comparison. |
Returns
| Type | Description |
|---|---|
| Boolean | Returns true if values are nearly equal. |
Lerp(T, T, Single)
Function used to interpolate between a tween's start value and target value.
Declaration
T Lerp(T from, T to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| T | from | Tween start value. |
| T | to | Tween target value. |
| Single | t | Value between 0-1 used to evaluate the output between the from and to values. |
Returns
| Type | Description |
|---|---|
| T | Returns the interpolation from |