void SavePresetSettings() { m_SelectedPreset.CopySettingsFrom(m_Settings); m_SelectedPreset.CopyUISettingsFrom(m_Settings); AssetDatabase.SaveAssets(); AssetDatabase.Refresh(); }
void ResetToDefaultSettings() { // Copy everything to our current settings. // Since UI settings are not copied, they remain unchanged. m_Settings.CopySettingsFrom(m_DefaultSettings); }