public void RemoveCurve(int index) { SerializedProperty property = this.Get("curves"); if ((property != null) && property.isArray) { property.DeleteArrayElementAtIndex(index); } }