docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor AnimationCurveSampler

    AnimationCurveSampler()

    Constructs a default AnimationCurveSampler

    Declaration
    public AnimationCurveSampler()

    AnimationCurveSampler(AnimationCurve, int)

    Constructs an AnimationCurveSampler with a given animation curve

    Declaration
    public AnimationCurveSampler(AnimationCurve curve, int numberOfSamples = 500)
    Parameters
    Type Name Description
    AnimationCurve curve

    The animation curve to sample from

    int numberOfSamples

    Number of samples used for integrating over the provided AnimationCurve

    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)