Class LinearCurve<T>.Keyframe
A single keyframe that can be injected into linear curve.
Inheritance
System.Object
LinearCurve<T>.Keyframe
Implements
System.IComparable
System.IComparable<LinearCurve.Keyframe<>>
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class Keyframe : ValueType, IComparable, IComparable<LinearCurve<T>.Keyframe>
Constructors
Keyframe(Single, T)
Initializes a new instance of the LinearCurve<T>.Keyframe struct.
Declaration
public Keyframe(float time, T value)
Parameters
System.Single
time
The time. |
T
value
The value. |
Fields
Time
The time of the keyframe.
Declaration
[EditorOrder(0)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The time of the keyframe.")]
public float Time
Field Value
System.Single
|
Value
The value of the curve at keyframe.
Declaration
[EditorOrder(1)]
[Limit(-3.40282347E+38F, 3.40282347E+38F, 0.01F)]
[Tooltip("The value of the curve at keyframe.")]
public T Value
Field Value
T
|
Methods
CompareTo(LinearCurve<T>.Keyframe)
Declaration
public int CompareTo(LinearCurve<T>.Keyframe other)
Parameters
LinearCurve.Keyframe<>
other
|
Returns
System.Int32
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
|
Returns
System.Int32
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|