mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-31 05:58:47 +00:00
Update AssetBundleCollector
打包资源忽略Gizmos资源文件。
This commit is contained in:
@@ -180,7 +180,15 @@ namespace YooAsset.Editor
|
||||
private bool IsValidateAsset(string assetPath)
|
||||
{
|
||||
if (assetPath.StartsWith("Assets/") == false && assetPath.StartsWith("Packages/") == false)
|
||||
{
|
||||
UnityEngine.Debug.LogError($"Invalid asset path : {assetPath}");
|
||||
return false;
|
||||
}
|
||||
if (assetPath.Contains("/Gizmos/"))
|
||||
{
|
||||
UnityEngine.Debug.LogWarning($"Cannot pack gizmos asset : {assetPath}");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (AssetDatabase.IsValidFolder(assetPath))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user