Improve support of Tuanjie assets

This commit is contained in:
VaDiM
2025-06-07 13:42:33 +03:00
parent 3ea01ec9bc
commit 60426a4b9a
3 changed files with 12 additions and 2 deletions

View File

@ -53,6 +53,16 @@
{
var m_RayTraceProcedural = reader.ReadByte();
}
if (version.IsTuanjie) //2022.3.2t3(1.0.0) and up
{
var m_virtualGeometry = reader.ReadByte();
var m_virtualGeometryShadow = reader.ReadByte();
if (version >= (2022, 3, 48)) //2022.3.48t3(1.4.0) and up
{
reader.AlignStream();
var m_ShadingRate = reader.ReadByte();
}
}
if (version >= (2023, 2)) //2023.2 and up
{
var m_RayTracingAccelStructBuildFlagsOverride = reader.ReadByte();

View File

@ -83,7 +83,7 @@ namespace AssetStudio
{
var m_MipsStripped = reader.ReadInt32();
}
if (version.IsTuanjie)
if (version.IsTuanjie && (version > (2022, 3, 2) || version.Build >= 8)) //2022.3.2t8(1.1.0) and up
{
var m_WebStreaming = reader.ReadBoolean();
reader.AlignStream();

View File

@ -27,7 +27,7 @@ namespace AssetStudio
public bool IsAlpha => BuildType == BuildTypes.Alpha;
public bool IsBeta => BuildType == BuildTypes.Beta;
public bool IsPatch => BuildType == BuildTypes.Patch;
public bool IsTuanjie => BuildType == BuildTypes.Tuanjie && this >= (2022, 3);
public bool IsTuanjie => BuildType == BuildTypes.Tuanjie && this >= (2022, 3, 2);
public UnityVersion(string version)
{