mirror of https://github.com/tuyoogame/YooAsset
parent
96f95bbd99
commit
256844ddf5
|
@ -184,8 +184,6 @@ namespace YooAsset.Editor
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_referenceBundleNames.Count > 1)
|
if (_referenceBundleNames.Count > 1)
|
||||||
{
|
|
||||||
if (!AssetPath.Contains("/Editor/") && !AssetPath.Contains("/Gizmos/"))
|
|
||||||
{
|
{
|
||||||
IPackRule packRule = PackDirectory.StaticPackRule;
|
IPackRule packRule = PackDirectory.StaticPackRule;
|
||||||
var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath));
|
var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath));
|
||||||
|
@ -193,7 +191,6 @@ namespace YooAsset.Editor
|
||||||
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
|
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (IsRawAsset)
|
if (IsRawAsset)
|
||||||
|
|
|
@ -180,7 +180,15 @@ namespace YooAsset.Editor
|
||||||
private bool IsValidateAsset(string assetPath)
|
private bool IsValidateAsset(string assetPath)
|
||||||
{
|
{
|
||||||
if (assetPath.StartsWith("Assets/") == false && assetPath.StartsWith("Packages/") == false)
|
if (assetPath.StartsWith("Assets/") == false && assetPath.StartsWith("Packages/") == false)
|
||||||
|
{
|
||||||
|
UnityEngine.Debug.LogError($"Invalid asset path : {assetPath}");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
if (assetPath.Contains("/Gizmos/"))
|
||||||
|
{
|
||||||
|
UnityEngine.Debug.LogWarning($"Cannot pack gizmos asset : {assetPath}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (AssetDatabase.IsValidFolder(assetPath))
|
if (AssetDatabase.IsValidFolder(assetPath))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue