public void SetCurve(int index, AnimationCurve curveValue) { SerializedProperty curveProperty = this.GetCurveProperty(index); if (curveProperty != null) { curveProperty.animationCurveValue = curveValue; } }