Interface ITweenJob<T>
Interface representing a tween job's basic functions.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Assembly: Unity.XR.Interaction.Toolkit.dll
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 |
---|---|
bool | Returns true if values are nearly equal. |
Lerp(T, T, float)
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. |
float | t | Value between 0-1 used to evaluate the output between the from and to values. |
Returns
Type | Description |
---|---|
T | Returns the interpolation from |