docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddKey

    AddKey(float, float)

    Adds a new key to the curve.

    Declaration
    public int AddKey(float time, float value)
    Parameters
    Type Name Description
    float time

    The time at which to add the key.

    float value

    The value for the key.

    Returns
    Type Description
    int

    The index of the added key, or -1 if the key could not be added.

    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)