docs.unity.cn
    Show / Hide Table of Contents

    Class BooleanCurve

    A type of ICurve that stores keyframes of type bool.

    Inheritance
    Object
    BooleanCurve
    Namespace: Unity.LiveCapture
    Syntax
    public class BooleanCurve : ICurve<bool>, ICurve

    Properties

    FrameRate

    The sampling rate in Hz.

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

    Methods

    AddKey(Double, in Boolean)

    Adds a keyframe to the curve.

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

    The time in seconds to insert the keyframe at.

    Boolean 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 Monday, July 24, 2023