diff --git a/AssetStudio/Classes/Object.cs b/AssetStudio/Classes/Object.cs index 82065be..f778cdb 100644 --- a/AssetStudio/Classes/Object.cs +++ b/AssetStudio/Classes/Object.cs @@ -17,9 +17,11 @@ namespace AssetStudio protected BuildType buildType; [JsonIgnore] public BuildTarget platform; + [JsonIgnore] public ClassIDType type; [JsonIgnore] public SerializedType serializedType; + public int classID; public uint byteSize; private static JsonSerializerOptions jsonOptions; @@ -49,6 +51,7 @@ namespace AssetStudio buildType = reader.buildType; platform = reader.platform; serializedType = reader.serializedType; + classID = reader.classID; byteSize = reader.byteSize; if (platform == BuildTarget.NoTarget) diff --git a/AssetStudio/ObjectReader.cs b/AssetStudio/ObjectReader.cs index d0580db..309678e 100644 --- a/AssetStudio/ObjectReader.cs +++ b/AssetStudio/ObjectReader.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; namespace AssetStudio { @@ -12,6 +8,7 @@ namespace AssetStudio public long m_PathID; public long byteStart; public uint byteSize; + public int classID; public ClassIDType type; public SerializedType serializedType; public BuildTarget platform; @@ -26,6 +23,7 @@ namespace AssetStudio m_PathID = objectInfo.m_PathID; byteStart = objectInfo.byteStart; byteSize = objectInfo.byteSize; + classID = objectInfo.classID; if (Enum.IsDefined(typeof(ClassIDType), objectInfo.classID)) { type = (ClassIDType)objectInfo.classID;