docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor TextureCurve

    TextureCurve(AnimationCurve, float, bool, in Vector2)

    Creates a new TextureCurve from an existing AnimationCurve.

    Declaration
    public TextureCurve(AnimationCurve baseCurve, float zeroValue, bool loop, in Vector2 bounds)
    Parameters
    Type Name Description
    AnimationCurve baseCurve

    The source AnimationCurve.

    float zeroValue

    The default value to use when the curve doesn't have any key.

    bool loop

    Should the curve automatically loop in the given bounds?

    Vector2 bounds

    The boundaries of the curve.

    TextureCurve(Keyframe[], float, bool, in Vector2)

    Creates a new TextureCurve from an arbitrary number of keyframes.

    Declaration
    public TextureCurve(Keyframe[] keys, float zeroValue, bool loop, in Vector2 bounds)
    Parameters
    Type Name Description
    Keyframe[] keys

    An array of Keyframes used to define the curve.

    float zeroValue

    The default value to use when the curve doesn't have any key.

    bool loop

    Should the curve automatically loop in the given bounds?

    Vector2 bounds

    The boundaries of the curve.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)