Class BooleanCurve
A type of ICurve that stores keyframes of type bool.
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
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
Clear()
Clears the keyframes from the curve.
Declaration
public void Clear()
Implements
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
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. |