Struct TweenJobData<T>
Struct holding all data needed to compute a tween job.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
Syntax
public struct TweenJobData<T>
where T : struct
Type Parameters
Name | Description |
---|---|
T | Struct type of tween output. |
Fields
initialValue
Initial value for variable or receiver being tweened.
Declaration
public T initialValue
Field Value
Type | Description |
---|---|
T |
nativeCurve
Native curve used to evaluate the tweens using the stateOriginValue, stateTargetValue, and stateTransitionAmountFloat.
Declaration
public NativeCurve nativeCurve
Field Value
Type | Description |
---|---|
NativeCurve |
outputData
Native array with 1 value used to store the tween output.
Declaration
public NativeArray<T> outputData
Field Value
Type | Description |
---|---|
NativeArray<T> |
squareSnapDistanceThreshold
Square distance value used to evaluate if the tween should just snap to the target value.
Declaration
public const float squareSnapDistanceThreshold = 2.50000028E-07F
Field Value
Type | Description |
---|---|
Single |
stateOriginValue
Affordance state lower bound. Used with stateTransitionAmountFloat and nativeCurve to find tween target.
Declaration
public T stateOriginValue
Field Value
Type | Description |
---|---|
T |
stateTargetValue
Affordance state upper bound. Used with stateTransitionAmountFloat and nativeCurve to find tween target.
Declaration
public T stateTargetValue
Field Value
Type | Description |
---|---|
T |
stateTransitionIncrement
State transition amount represented as a byte. Converted to float by dividing over totalStateTransitionIncrements.
Declaration
public byte stateTransitionIncrement
Field Value
Type | Description |
---|---|
Byte |
See Also
totalStateTransitionIncrements
Total number of supported increments for the affordance state transition amount float conversion.
Declaration
public const byte totalStateTransitionIncrements = 255
Field Value
Type | Description |
---|---|
Byte |
See Also
tweenAmount
Interpolation value between 0-1 used to interpolate between the tween start value and the computed target value.
Declaration
public float tweenAmount
Field Value
Type | Description |
---|---|
Single |
tweenStartValue
Tween starting value. Used with computed tween target by evaluating the stateTransitionAmountFloat between origin and target values.
Declaration
public T tweenStartValue
Field Value
Type | Description |
---|---|
T |
Properties
stateTransitionAmountFloat
0-1 Float representation of stateTransitionIncrement.
Declaration
public readonly float stateTransitionAmountFloat { get; }
Property Value
Type | Description |
---|---|
Single |