private SetCurveConstant ( UnityEditor.SerializedProperty curve, float value ) : void | ||
curve | UnityEditor.SerializedProperty | |
value | float | |
return | void |
private void SetCurveConstant(SerializedProperty curve, float value)
{
Keyframe[] keys = new Keyframe[] { new Keyframe(0f, value) };
curve.animationCurveValue = new AnimationCurve(keys);
}