public void SetCurveName(int index, string name) { SerializedProperty property = this.Get("curves"); if ((property != null) && property.isArray) { property.GetArrayElementAtIndex(index).FindPropertyRelative("name").stringValue = name; } }