Fix missing uniqueId for some asset types

This commit is contained in:
VaDiM
2026-05-19 01:40:40 +03:00
parent a195d4dac7
commit b9d993e389
5 changed files with 14 additions and 4 deletions
+9 -1
View File
@@ -5,6 +5,8 @@ namespace AssetStudioGUI
{
internal class AssetItem : ListViewItem
{
private static long _counter;
public Object Asset;
public SerializedFile SourceFile;
public string Container = string.Empty;
@@ -13,7 +15,7 @@ namespace AssetStudioGUI
public long FullSize;
public ClassIDType Type;
public string InfoText;
public string UniqueID;
public readonly string UniqueID;
public ulong Hash;
public GameObjectTreeNode TreeNode;
@@ -25,6 +27,7 @@ namespace AssetStudioGUI
TypeString = Type.ToString();
m_PathID = asset.m_PathID;
FullSize = asset.byteSize;
UniqueID = $" #{_counter++}";
Hash = 0;
}
@@ -38,5 +41,10 @@ namespace AssetStudioGUI
FullSize.ToString(), //Size
});
}
public static void Reset()
{
_counter = 0;
}
}
}