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
+4 -1
View File
@@ -4,6 +4,8 @@ namespace AssetStudioCLI
{
internal class AssetItem
{
private static long _counter;
public Object Asset;
public SerializedFile SourceFile;
public string Container = string.Empty;
@@ -12,7 +14,7 @@ namespace AssetStudioCLI
public long FullSize;
public ClassIDType Type;
public string Text;
public string UniqueID;
public readonly string UniqueID;
public ulong Hash;
public GameObjectNode Node;
@@ -24,6 +26,7 @@ namespace AssetStudioCLI
TypeString = Type.ToString();
m_PathID = asset.m_PathID;
FullSize = asset.byteSize;
UniqueID = $" #{_counter++}";
Hash = 0;
}
}
-1
View File
@@ -216,7 +216,6 @@ namespace AssetStudioCLI
{
var assetItem = new AssetItem(asset);
objectAssetItemDic.Add(asset, assetItem);
assetItem.UniqueID = "_#" + i;
var isExportable = false;
switch (asset)
{