protected void SaveSelectedEntry() { ScrObjLibraryEntry entry = entryLibrary.GetEntryByIndex(selIndex); entry.CopyValues(entryValues); Undo.RecordObject(entry, "Updated entry"); EditorUtility.SetDirty(entry); if (oldRepColor != entryValues.repColor) { oldRepColor = entryValues.repColor; RefreshEntryList(); } }
protected void SelectEntry() { // Nothing selected if (selIndex == -1) { entryValues.ResetValues(); } else { // Something selected ScrObjLibraryEntry entry = entryLibrary.GetEntryByIndex(selIndex); entryValues.CopyValues(entry); oldRepColor = entryValues.repColor; } }