mirror of https://github.com/tuyoogame/YooAsset
fix #321
parent
2cbfca4f3b
commit
dc119b26c7
|
@ -35,7 +35,7 @@ namespace YooAsset
|
||||||
CreateBuildinCatalogFile(subDirectory.Name, subDirectory.FullName);
|
CreateBuildinCatalogFile(subDirectory.Name, subDirectory.FullName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 生成包裹的内置资源目录文件
|
/// 生成包裹的内置资源目录文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -109,8 +109,8 @@ namespace YooAsset
|
||||||
FileUtility.CreateFileDirectory(saveFilePath);
|
FileUtility.CreateFileDirectory(saveFilePath);
|
||||||
|
|
||||||
UnityEditor.AssetDatabase.CreateAsset(buildinFileCatalog, saveFilePath);
|
UnityEditor.AssetDatabase.CreateAsset(buildinFileCatalog, saveFilePath);
|
||||||
UnityEditor.AssetDatabase.SaveAssets();
|
UnityEditor.EditorUtility.SetDirty(buildinFileCatalog);
|
||||||
UnityEditor.AssetDatabase.Refresh();
|
UnityEditor.AssetDatabase.SaveAssetIfDirty(buildinFileCatalog);
|
||||||
Debug.Log($"Succeed to save buildin file catalog : {saveFilePath}");
|
Debug.Log($"Succeed to save buildin file catalog : {saveFilePath}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue