docs.unity3d.com
    Show / Hide Table of Contents

    Sample Curve

    Menu Path : Operator > Sampling > Sample Curve

    The Sample Curve Operator samples a curve at a specified time. When it samples a curve, it takes left and right repeat modes of the input curve into account.

    Operator properties

    Input Type Description
    Curve Curve The curve this Operator samples from.
    Time float The time this Operator uses to sample the curve.
    Output Type Description
    s float The sampled value from the input curve.

    Limitations

    When Unity evaluates this Operator on the GPU, it doesn’t take ping pong mode into account. In this case, the sampling mode defaults to clamp.

    In This Article
    • Operator properties
    • Limitations
    Back to top
    Terms of use
    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