internal static bool InitializeSettings() { var guids = AssetDatabase.FindAssets("t:" + settingsType); //try to find a settings file in a non-package directory foreach (var guid in guids) { var path = AssetDatabase.GUIDToAssetPath(guid); if (path.StartsWith("Assets")) { guids[0] = guid; break; } } if (InitializeSettings(guids.Length > 0 ? guids[0] : null)) { IsInitialized = true; return true; } else { ToolboxEditorLog.KitInitializationMessage(); return false; } }
internal static bool InitializeSettings() { var guids = AssetDatabase.FindAssets("t:" + settingsType); if (InitializeSettings(guids.Length > 0 ? guids[0] : null)) { IsInitialized = true; return(true); } else { ToolboxEditorLog.KitInitializationMessage(); return(false); } }