docs.unity.cn
    Show / Hide Table of Contents

    Class Vector2Curve

    A type of ICurve that stores keyframes of type Vector2.

    Inheritance
    Object
    Vector2Curve
    Namespace: Unity.LiveCapture
    Syntax
    public class Vector2Curve : ICurve<Vector2>, IReduceableCurve, ICurve

    Properties

    FrameRate

    The sampling rate in Hz.

    Declaration
    public FrameRate FrameRate { get; set; }
    Property Value
    Type Description
    FrameRate
    Implements
    ICurve.FrameRate

    MaxError

    Declaration
    public float MaxError { get; set; }
    Property Value
    Type Description
    Single

    Methods

    AddKey(Double, in Vector2)

    Adds a keyframe to the curve.

    Declaration
    public void AddKey(double time, in Vector2 value)
    Parameters
    Type Name Description
    Double time

    The time in seconds to insert the keyframe at.

    Vector2 value
    Implements
    ICurve<T>.AddKey(Double, in T)

    Clear()

    Clears the keyframes from the curve.

    Declaration
    public void Clear()
    Implements
    ICurve.Clear()

    IsEmpty()

    Checks if the animation curve contains keyframes.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    Boolean

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

    Implements
    ICurve.IsEmpty()

    SetToAnimationClip(PropertyBinding, AnimationClip)

    Sets the curve to the given animation clip.

    Declaration
    public 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.

    Implements
    ICurve.SetToAnimationClip(PropertyBinding, AnimationClip)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 17, 2023