Skip to content

Commit 9fb1f13

Browse files
authored
Update AssetDependencyTree.cs
assetbundle names does not support '|'
1 parent 8ce05e0 commit 9fb1f13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Editor/AssetDependencyTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void CollectNodes(Context context)
182182
private static string GetSharedBundleName(string path, bool folderBased)
183183
{
184184
if(!folderBased) return $"Shared_{AssetDatabase.AssetPathToGUID(path)}";
185-
path = System.IO.Path.GetDirectoryName(path).Replace('/', '|').Replace('\\', '|');
185+
path = System.IO.Path.GetDirectoryName(path).Replace('/', '_').Replace('\\', '_');
186186
return $"Shared_{path}";
187187
}
188188
}

0 commit comments

Comments
 (0)