Improve support for Unity 6000.2+ assets

This commit is contained in:
VaDiM
2025-10-10 04:11:27 +03:00
parent d1bf0c5a37
commit c07dc59f51
4 changed files with 20 additions and 0 deletions

View File

@ -510,6 +510,7 @@ namespace AssetStudio
public Vector3[] m_PositionValues;
public Vector4[] m_QuaternionValues;
public Vector3[] m_ScaleValues;
public int[] m_EntityIdValues;
public ValueArray(ObjectReader reader)
{
@ -557,6 +558,10 @@ namespace AssetStudio
m_IntValues = reader.ReadInt32Array();
m_BoolValues = reader.ReadBooleanArray();
reader.AlignStream();
if (version >= (6000, 2)) //6000.2 and up
{
m_EntityIdValues = reader.ReadInt32Array();
}
}
}
}

View File

@ -811,6 +811,8 @@ namespace AssetStudio
m_HasVirtualGeometryMesh = reader.ReadBoolean();
}
//m_MeshLodInfo = new MeshLodInfo(reader) //6000.2 and up
if (!assetsFile.assetsManager.MeshLazyLoad)
ProcessData();
}

View File

@ -79,6 +79,12 @@ namespace AssetStudio
var m_SmallMeshCulling = reader.ReadByte();
}
reader.AlignStream();
if (version >= (6000, 2)) //6000.2 and up
{
var m_ForceMeshLod = reader.ReadInt16();
reader.AlignStream();
var m_MeshLodSelectionBias = reader.ReadSingle();
}
}
else
{
@ -174,6 +180,11 @@ namespace AssetStudio
var m_SortingOrder = reader.ReadInt16();
reader.AlignStream();
if (version >= (6000, 3)) //6000.3 and up
{
var m_MaskInteraction = reader.ReadInt32();
}
}
}
}

View File

@ -116,6 +116,8 @@ namespace AssetStudio
{1152, "FileSize"},
{1161, "Hash128"},
{1169, "RenderingLayerMask"},
{1188, "fixed_array"},
{1200, "EntityId"},
};
}
}