docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BooleanCurve

    A type of ICurve that stores keyframes of type bool.

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

    Constructors

    BooleanCurve(string, string, Type)

    Creates a new BooleanCurve instance.

    Declaration
    public BooleanCurve(string relativePath, string propertyName, Type bindingType)
    Parameters
    Type Name Description
    string relativePath

    The path of the game object this curve applies to, relative to the game object the actor component is attached to.

    string propertyName

    The name or path to the property that is animated.

    Type bindingType

    The type of component this curve is applied to.

    Properties

    BindingType

    The type of the property to be animated.

    Declaration
    public Type BindingType { get; }
    Property Value
    Type Description
    Type

    FrameRate

    The sampling rate in Hz.

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

    PropertyName

    The name of the property to be animated.

    Declaration
    public string PropertyName { get; }
    Property Value
    Type Description
    string

    RelativePath

    The transform path of the object that is animated.

    Declaration
    public string RelativePath { get; }
    Property Value
    Type Description
    string

    Methods

    AddKey(float, bool)

    Adds a keyframe to the curve.

    Declaration
    public void AddKey(float time, bool value)
    Parameters
    Type Name Description
    float time

    The time in seconds to insert the keyframe at.

    bool 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(AnimationClip)

    Sets the curve to the given animation clip.

    Declaration
    public void SetToAnimationClip(AnimationClip clip)
    Parameters
    Type Name Description
    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)