docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetKeyframe

    SetKeyframe(SerializedProperty, int, Keyframe)

    Sets a key for a given curve.

    Declaration
    public void SetKeyframe(SerializedProperty curve, int keyframeIndex, Keyframe keyframe)
    Parameters
    Type Name Description
    SerializedProperty curve

    The curve to modify.

    int keyframeIndex

    The index of the key to set.

    Keyframe keyframe

    The new keyframe to put at the index.

    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)