docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Vector2Curve

    A type of ICurve that stores keyframes of type Vector2.

    Inheritance
    object
    Vector2Curve
    Implements
    ICurve<Vector2>
    ICurve
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    public class Vector2Curve : ICurve<Vector2>, ICurve

    Properties

    FrameRate

    The sampling rate in Hz.

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

    MaxError

    The tolerance allowed when simplifying the curve.

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

    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

    The keyframe value.

    Clear()

    Clears the keyframes from the curve.

    Declaration
    public void Clear()

    IsEmpty()

    Checks if the animation curve contains keyframes.

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    bool

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

    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<T>
    ICurve
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)