|
@@ -143,6 +143,10 @@ namespace GFGEditor
|
|
|
public static string LeagueIconTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/LeagueIcon/";
|
|
|
public static string LeagueIconMd5FileSaveName = "LeagueIconMd5";
|
|
|
|
|
|
+ public static string[] MiniGameSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.TEXTURE_DIR_PATH}/MiniGame/" }; } }
|
|
|
+ public static string MiniGameTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/MiniGame/";
|
|
|
+ public static string MiniGameMd5FileSaveName = "MiniGameMd5";
|
|
|
+
|
|
|
public static void Import()
|
|
|
{
|
|
|
var md5Path = ImportArtResTool.Md5FilePath;
|
|
@@ -256,6 +260,10 @@ namespace GFGEditor
|
|
|
EditorUtility.DisplayDialog("提示", "有NPC立绘更新,需要设置坐标原点!", "OK", "");
|
|
|
}
|
|
|
|
|
|
+ //小游戏资源
|
|
|
+ EditorUtility.DisplayProgressBar("进度", "正在导入小游戏资源", 1);
|
|
|
+ ImportRes(MiniGameSrcPaths, MiniGameTargetPath, MiniGameMd5FileSaveName);
|
|
|
+
|
|
|
EditorUtility.ClearProgressBar();
|
|
|
AssetDatabase.Refresh();
|
|
|
Debug.LogWarning("导入美术资源成功!");
|