docs.unity3d.com
    Show / Hide Table of Contents

    Interface ITweenJob<T>

    Interface representing a tween job's basic functions.

    Inherited Members
    IJob.Execute()
    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 from to to.

    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