docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SampledCurve

    Curve blob asset.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Vehicles
    Assembly: com.unity.vehicles.dll
    Syntax
    public struct SampledCurve

    Fields

    Values

    Sampled points along the curve.

    Declaration
    public BlobArray<float> Values
    Field Value
    Type Description
    BlobArray<float>

    XRangeMinMax

    Range of the values on the X-axis.

    Declaration
    public float2 XRangeMinMax
    Field Value
    Type Description
    float2

    Methods

    EvaluateAt(float)

    Returns the value of the curve at the given time.

    Declaration
    public float EvaluateAt(float x)
    Parameters
    Type Name Description
    float x

    Time at which the curve will be sampled.

    Returns
    Type Description
    float

    Value at the given time.

    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)