修改 mat.unity3d的打包策略, 减少场景加载
This commit is contained in:
parent
e8d91952f3
commit
87002746d2
@ -22,7 +22,10 @@ public class AssetBundleMap : EditorWindow
|
||||
/// </summary>
|
||||
private const string MatAbName = "mat.unity3d";
|
||||
|
||||
|
||||
private const string MatAbName_UI = "mat_UI.unity3d";
|
||||
private const string MatAbName_Icon = "mat_Icon.unity3d";
|
||||
private const string MatAbName_Effect = "mat_Effect.unity3d";
|
||||
private const string MatAbName_Actor = "mat_Actor.unity3d";
|
||||
/// <summary>
|
||||
/// 临时ab生成目录
|
||||
/// </summary>
|
||||
@ -592,7 +595,8 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
addData(maps, MatAbName_Icon, dependencyAssetName);
|
||||
}
|
||||
else if (fileType != "cs")
|
||||
{
|
||||
@ -677,7 +681,8 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
addData(maps, MatAbName_Actor, dependencyAssetName);
|
||||
}
|
||||
else if (fileType == "jpg" || fileType == "png" || fileType == "tga" || fileType == "tif" ||
|
||||
fileType == "psd")
|
||||
@ -763,7 +768,8 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
addData(maps, MatAbName_Effect, dependencyAssetName);
|
||||
}
|
||||
else if (fileType == "jpg" || fileType == "png" || fileType == "tga" || fileType == "tif" ||
|
||||
fileType == "psd")
|
||||
@ -821,7 +827,8 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
addData(maps, MatAbName_UI, dependencyAssetName);
|
||||
}
|
||||
else if (fileType == "jpg" || fileType == "png" || fileType == "tga" || fileType == "tif" ||
|
||||
fileType == "psd")
|
||||
@ -884,7 +891,8 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
addData(maps, MatAbName_UI, dependencyAssetName);
|
||||
}
|
||||
else if (fileType == "jpg" || fileType == "png" || fileType == "tga" || fileType == "tif" ||
|
||||
fileType == "psd")
|
||||
@ -981,7 +989,7 @@ public class AssetBundleMap : EditorWindow
|
||||
}
|
||||
else if (fileType == "mat")
|
||||
{
|
||||
addData(maps, MatAbName, dependencyAssetName);
|
||||
// addData(maps, MatAbName, dependencyAssetName);
|
||||
}
|
||||
else if (fileType == "prefab")
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user