Class IntegerCurve
A type of ICurve that stores keyframes of type int.
Namespace: Unity.LiveCapture
Syntax
public class IntegerCurve : ICurve<int>, ICurve
Properties
FrameRate
The sampling rate in Hz.
Declaration
public FrameRate FrameRate { get; set; }
Property Value
| Type | Description |
|---|---|
| FrameRate |
Implements
MaxError
Declaration
public float MaxError { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
AddKey(Double, in Int32)
Adds a keyframe to the curve.
Declaration
public void AddKey(double time, in int value)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | time | The time in seconds to insert the keyframe at. |
| Int32 | 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. |