|
@@ -101,6 +101,10 @@ namespace GFGEditor
|
|
public static string MaterialTargetPath = $"{ResPathUtil.Material_DIR_PATH}/Effect/";
|
|
public static string MaterialTargetPath = $"{ResPathUtil.Material_DIR_PATH}/Effect/";
|
|
public static string EffectMaterialMd5FileSaveName = "EffectMaterialMd5";
|
|
public static string EffectMaterialMd5FileSaveName = "EffectMaterialMd5";
|
|
|
|
|
|
|
|
+ public static string[] ShaderSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Shader_DIR_PATH}/" }; } }
|
|
|
|
+ public static string ShaderTargetPath = $"{ResPathUtil.Shader_DIR_PATH}/";
|
|
|
|
+ public static string ShaderMd5FileSaveName = "ShaderMd5";
|
|
|
|
+
|
|
|
|
|
|
public static string[] TextureSrcPaths { get { return new string[] { ResRootPath + $"ArtProject/{ResPathUtil.Texture_DIR_PATH}/Effect/" }; } }
|
|
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 TextureTargetPath = $"{ResPathUtil.Texture_DIR_PATH}/Effect/";
|
|
@@ -201,6 +205,9 @@ namespace GFGEditor
|
|
//材质
|
|
//材质
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效材质", 1);
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效材质", 1);
|
|
ImportRes(MaterialSrcPaths, MaterialTargetPath, EffectMaterialMd5FileSaveName);
|
|
ImportRes(MaterialSrcPaths, MaterialTargetPath, EffectMaterialMd5FileSaveName);
|
|
|
|
+ //Shader
|
|
|
|
+ EditorUtility.DisplayProgressBar("进度", "正在导入Shader", 1);
|
|
|
|
+ ImportRes(ShaderSrcPaths, ShaderTargetPath, ShaderMd5FileSaveName);
|
|
|
|
|
|
//图片
|
|
//图片
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效图片", 1);
|
|
EditorUtility.DisplayProgressBar("进度", "正在导入特效图片", 1);
|
|
@@ -232,7 +239,7 @@ namespace GFGEditor
|
|
}
|
|
}
|
|
foreach (string dir in sourceDirs)
|
|
foreach (string dir in sourceDirs)
|
|
{
|
|
{
|
|
- files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".meta", ".mat" }, ragule);
|
|
|
|
|
|
+ files = FileUtil.CopyFilesTo(dir, targetDir, saveName, new string[] { ".png", ".jpg", ".mp3", ".meta", ".mat", ".shader" }, ragule);
|
|
foreach (var file in files)
|
|
foreach (var file in files)
|
|
{
|
|
{
|
|
Debug.LogFormat("更新{0}", file);
|
|
Debug.LogFormat("更新{0}", file);
|