docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TweenJobData<T>

    Struct holding all data needed to compute a tween job.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
    Assembly: Unity.XR.Interaction.Toolkit.dll
    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.5000003E-07
    Field Value
    Type Description
    float

    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
    stateTransitionIncrement

    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
    totalStateTransitionIncrements

    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
    float

    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 float stateTransitionAmountFloat { get; }
    Property Value
    Type Description
    float
    See Also
    stateTransitionAmountFloat
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)