Fixed if the container has the same key

This commit is contained in:
Perfare 2020-03-30 09:01:25 +08:00
parent 687b1d3a0d
commit 85cf134a49
1 changed files with 5 additions and 1 deletions

View File

@ -174,7 +174,11 @@ namespace AssetStudioGUI
productName = m_PlayerSettings.productName;
break;
case AssetBundle m_AssetBundle:
containers = m_AssetBundle.m_Container.ToDictionary(x => x.Value.asset.m_PathID, x => x.Key);
containers = new Dictionary<long, string>();
foreach (var m_Container in m_AssetBundle.m_Container)
{
containers[m_Container.Value.asset.m_PathID] = m_Container.Key;
}
assetItem.Text = m_AssetBundle.m_Name;
break;
case NamedObject m_NamedObject: