Show/Export object dump if typetree dump is not available

This commit is contained in:
VaDiM
2024-02-11 19:00:03 +03:00
parent f90c0ecc00
commit 8460ecef8d
7 changed files with 64 additions and 4 deletions

View File

@ -303,6 +303,10 @@ namespace AssetStudioCLI
var m_Type = m_MonoBehaviour.ConvertToTypeTree(Studio.assemblyLoader);
str = m_MonoBehaviour.Dump(m_Type);
}
if (string.IsNullOrEmpty(str))
{
str = item.Asset.DumpObject();
}
if (str != null)
{
File.WriteAllText(exportFullPath, str);