docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AnimationCurveSample

    AnimationCurveSample(float[], float, float, float, float)

    Generate samples from probability distribution derived from a given AnimationCurve.

    Declaration
    public static float AnimationCurveSample(float[] integratedCurve, float uniformSample, float interval, float startTime, float endTime)
    Parameters
    Type Name Description
    float[] integratedCurve

    Numerical integration representing the AnimationCurve

    float uniformSample

    A sample value between 0 and 1 generated from a uniform distribution

    float interval

    The interval at which the original AnimationCurve was sampled in order to produce integratedCurve

    float startTime

    The time attribute of the first key of the original AnimationCurve

    float endTime

    The time attribute of the last key of the original AnimationCurve

    Returns
    Type Description
    float

    The generated sample

    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)