docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Float3TweenJob

    Tween job implementation for tweening float3 values.

    Implements
    ITweenJob<float3>
    IJob
    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 Float3TweenJob : ITweenJob<float3>, IJob

    Properties

    jobData

    Typed job data used in tween job.

    Declaration
    public TweenJobData<float3> jobData { readonly get; set; }
    Property Value
    Type Description
    TweenJobData<float3>

    Methods

    Execute()

    Perform work on a worker thread.

    Declaration
    public void Execute()
    See Also
    Execute()

    IsNearlyEqual(float3, float3)

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

    First value in equality comparison.

    float3 to

    Second value in equality comparison.

    Returns
    Type Description
    bool

    Returns true if values are nearly equal.

    Lerp(float3, float3, float)

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

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

    Tween start value.

    float3 to

    Tween target value.

    float t

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

    Returns
    Type Description
    float3

    Returns the interpolation from from to to.

    Implements

    ITweenJob<T>
    IJob
    In This Article
    Back to top
    Copyright © 2025 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)