docs.unity.cn
    Show / Hide Table of Contents

    Interface ICurve

    Represents an animation curve.

    Namespace: Unity.LiveCapture
    Syntax
    public interface ICurve

    Properties

    FrameRate

    The sampling rate in Hz.

    Declaration
    FrameRate FrameRate { get; set; }
    Property Value
    Type Description
    FrameRate

    Methods

    Clear()

    Clears the keyframes from the curve.

    Declaration
    void Clear()

    IsEmpty()

    Checks if the animation curve contains keyframes.

    Declaration
    bool IsEmpty()
    Returns
    Type Description
    Boolean

    true if the curve contains no keyframes; otherwise, false.

    SetToAnimationClip(PropertyBinding, AnimationClip)

    Sets the curve to the given animation clip.

    Declaration
    void SetToAnimationClip(PropertyBinding binding, AnimationClip clip)
    Parameters
    Type Name Description
    PropertyBinding binding

    The binding to use for animation.

    AnimationClip clip

    The animation clip to set the curve to.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023