mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-11-12 23:32:42 -05:00
Improve support for Unity 6000.2+ assets
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -811,6 +811,8 @@ namespace AssetStudio
|
||||
m_HasVirtualGeometryMesh = reader.ReadBoolean();
|
||||
}
|
||||
|
||||
//m_MeshLodInfo = new MeshLodInfo(reader) //6000.2 and up
|
||||
|
||||
if (!assetsFile.assetsManager.MeshLazyLoad)
|
||||
ProcessData();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,6 +116,8 @@ namespace AssetStudio
|
||||
{1152, "FileSize"},
|
||||
{1161, "Hash128"},
|
||||
{1169, "RenderingLayerMask"},
|
||||
{1188, "fixed_array"},
|
||||
{1200, "EntityId"},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user