docs.unity3d.com
    Show / Hide Table of Contents

    Struct Float4TweenJob

    Tween job implementation for tweening float4 values.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Jobs
    Syntax
    public struct Float4TweenJob : ITweenJob<float4>, IJob

    Properties

    jobData

    Typed job data used in tween job.

    Declaration
    public TweenJobData<float4> jobData { readonly get; set; }
    Property Value
    Type Description
    TweenJobData<float4>
    Implements
    ITweenJob<T>.jobData

    Methods

    Execute()

    Perform work on a worker thread.

    Declaration
    public void Execute()
    Implements
    IJob.Execute()
    See Also
    Execute()

    IsNearlyEqual(float4, float4)

    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(float4 from, float4 to)
    Parameters
    Type Name Description
    float4 from
    float4 to
    Returns
    Type Description
    Boolean

    Returns true if values are nearly equal.

    Implements
    ITweenJob<T>.IsNearlyEqual(T, T)

    Lerp(float4, float4, Single)

    Function used to interpolate between a tween's start value and target value.

    Declaration
    public float4 Lerp(float4 from, float4 to, float t)
    Parameters
    Type Name Description
    float4 from
    float4 to
    Single t

    Value between 0-1 used to evaluate the output between the from and to values.

    Returns
    Type Description
    float4

    Returns the interpolation from from to to.

    Implements
    ITweenJob<T>.Lerp(T, T, Single)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023