Interface CurveEditor<T>.IKeyframeAccess<U>
The generic keyframe value accessor object for curve editor.
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public interface IKeyframeAccess<U>
where U : new()
Type Parameters
U
The keyframe value type. |
Methods
GetCurveComponents()
Gets the curve components count. Vector types should return amount of component to use for value editing.
Declaration
int GetCurveComponents()
Returns
System.Int32
The components count. |
GetCurveValue(ref U, Int32)
Gets the value of the component for the curve.
Declaration
float GetCurveValue(ref U value, int component)
Parameters
U
value
The keyframe value. |
System.Int32
component
The component index. |
Returns
System.Single
The curve value. |
GetDefaultValue(out U)
Gets the default value.
Declaration
void GetDefaultValue(out U value)
Parameters
U
value
The value. |
SetCurveValue(Single, ref U, Int32)
Sets the curve value of the component.
Declaration
void SetCurveValue(float curve, ref U value, int component)
Parameters
System.Single
curve
The curve value to assign. |
U
value
The keyframe value. |
System.Int32
component
The component index. |