private static void UpdateAsset(List <string> paths) { bool isUpdate = false; if (paths == null) { isUpdate = true; } else { foreach (var item in paths) { if (item.Contains("Assets/Resources")) { isUpdate = true; break; } } } if (isUpdate) { if (ResourcesConfigManager.GetIsExistResources()) { ResourcesConfigManager.CreateResourcesConfig(); ResourcesConfigManager.ClearConfig(); AssetDatabase.Refresh(); Debug.Log("创建资源路径文件"); } } }