parent
dcd606e573
commit
cd62686316
|
@ -1,4 +1,5 @@
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace YooAsset.Editor
|
namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
|
@ -9,6 +10,7 @@ namespace YooAsset.Editor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string SimulateBuild(string packageName)
|
public static string SimulateBuild(string packageName)
|
||||||
{
|
{
|
||||||
|
Debug.Log($"Begin to create simulate package : {packageName}");
|
||||||
string defaultOutputRoot = AssetBundleBuilderHelper.GetDefaultOutputRoot();
|
string defaultOutputRoot = AssetBundleBuilderHelper.GetDefaultOutputRoot();
|
||||||
BuildParameters buildParameters = new BuildParameters();
|
BuildParameters buildParameters = new BuildParameters();
|
||||||
buildParameters.OutputRoot = defaultOutputRoot;
|
buildParameters.OutputRoot = defaultOutputRoot;
|
||||||
|
|
|
@ -240,13 +240,15 @@ namespace YooAsset.Editor
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// 忽略Unity无法识别的无效文件
|
// 忽略Unity无法识别的无效文件
|
||||||
/*
|
// 注意:只对非原生文件收集器处理
|
||||||
|
if(PackRuleName != nameof(PackRawFile))
|
||||||
|
{
|
||||||
if (type == typeof(UnityEditor.DefaultAsset))
|
if (type == typeof(UnityEditor.DefaultAsset))
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.LogWarning($"Cannot pack default asset : {assetPath}");
|
UnityEngine.Debug.LogWarning($"Cannot pack default asset : {assetPath}");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
}
|
||||||
|
|
||||||
string fileExtension = System.IO.Path.GetExtension(assetPath);
|
string fileExtension = System.IO.Path.GetExtension(assetPath);
|
||||||
if (IsIgnoreFile(fileExtension))
|
if (IsIgnoreFile(fileExtension))
|
||||||
|
|
Loading…
Reference in New Issue