|
@@ -15,7 +15,7 @@ namespace GFGEditor
|
|
|
public static string ResRootPathDressUp { get { return $"../../../gfg/{ResRootDirNameDressUp}/"; } }
|
|
|
|
|
|
public static string ragule = @"^[0-9a-zA-Z_]{1,}$";
|
|
|
- public static string Md5FilePath = "Assets/MD5";
|
|
|
+ public static string Md5FilePath = "Assets/Res/MD5";
|
|
|
|
|
|
private static string[] FieldGuideIconSrcPaths { get { return new string[] { ResRootPath + "图鉴/" }; } }
|
|
|
public static string FieldGuideIconTargetPath = $"{ResPathUtil.TEXTURE_DIR_PATH}/FieldGuide/Icon/";
|
|
@@ -73,13 +73,14 @@ namespace GFGEditor
|
|
|
public static string[] EffectSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.EFFECT_DIR_PATH}/" }; } }
|
|
|
public static string EffectTargetPath = $"{ResPathUtil.EFFECT_DIR_PATH}/";
|
|
|
|
|
|
- public static string[] MaterialSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Material_DIR_PATH}/" }; } }
|
|
|
- public static string MaterialTargetPath = $"{ResPathUtil.Material_DIR_PATH}/";
|
|
|
-
|
|
|
- public static string[] TextureSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Texture_DIR_PATH}/" }; } }
|
|
|
- public static string TextureTargetPath = $"{ResPathUtil.Texture_DIR_PATH}/";
|
|
|
+ public static string[] MaterialSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Material_DIR_PATH}/Effect/" }; } }
|
|
|
+ public static string MaterialTargetPath = $"{ResPathUtil.Material_DIR_PATH}/Effect/";
|
|
|
+ public static string EffectMaterialMd5FileSaveName = "EffectMaterialMd5";
|
|
|
|
|
|
|
|
|
+ public static string[] TextureSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Texture_DIR_PATH}/Effect/" }; } }
|
|
|
+ public static string TextureTargetPath = $"{ResPathUtil.Texture_DIR_PATH}/Effect/";
|
|
|
+ public static string EffectTextureMd5FileSaveName = "EffectTextureMd5";
|
|
|
|
|
|
public static void Import()
|
|
|
{
|
|
@@ -122,10 +123,11 @@ namespace GFGEditor
|
|
|
ImportFileAndDir(EffectSrcPaths, EffectTargetPath);
|
|
|
//材质
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效材质", 1);
|
|
|
- ImportFileAndDir(MaterialSrcPaths, MaterialTargetPath);
|
|
|
+ ImportRes(MaterialSrcPaths, MaterialTargetPath, EffectMaterialMd5FileSaveName);
|
|
|
+
|
|
|
//图片
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效图片", 1);
|
|
|
- ImportFileAndDir(TextureSrcPaths, TextureTargetPath);
|
|
|
+ ImportRes(TextureSrcPaths, TextureTargetPath, EffectTextureMd5FileSaveName);
|
|
|
|
|
|
//NPC对话立绘
|
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入NPC对话立绘", 1);
|