Fixed if the container has the same key
This commit is contained in:
parent
687b1d3a0d
commit
85cf134a49
|
@ -174,7 +174,11 @@ namespace AssetStudioGUI
|
||||||
productName = m_PlayerSettings.productName;
|
productName = m_PlayerSettings.productName;
|
||||||
break;
|
break;
|
||||||
case AssetBundle m_AssetBundle:
|
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;
|
assetItem.Text = m_AssetBundle.m_Name;
|
||||||
break;
|
break;
|
||||||
case NamedObject m_NamedObject:
|
case NamedObject m_NamedObject:
|
||||||
|
|
Loading…
Reference in New Issue