void OnAutoDetectButtonClicked() { MeshSyncEditorSettings settings = MeshSyncEditorSettings.GetOrCreateSettings(); if (settings.AddInstalledDCCTools()) { Setup(m_root); } }
internal static MeshSyncEditorSettings GetOrCreateSettings() { MeshSyncEditorSettings settings = LoadEditorSettings(); if (null != settings) { return settings; } settings = new MeshSyncEditorSettings(); settings.AddInstalledDCCTools(); settings.SaveEditorSettings(); return settings; }