Beispiel #1
0
 void SavePresetSettings()
 {
     m_SelectedPreset.CopySettingsFrom(m_Settings);
     m_SelectedPreset.CopyUISettingsFrom(m_Settings);
     AssetDatabase.SaveAssets();
     AssetDatabase.Refresh();
 }
Beispiel #2
0
        void LoadPresetToSettings()
        {
            if (m_SelectedPreset == null)
            {
                EditorUtility.DisplayDialog("Error", "No selected preset found. Select one to continue.", "OK");
                return;
            }

            m_Settings.CopySettingsFrom(m_SelectedPreset);
            m_Settings.CopyUISettingsFrom(m_SelectedPreset);
        }