Improve support of Unity 2023+

This commit is contained in:
VaDiM
2024-09-25 23:38:19 +03:00
parent 348aea2be8
commit fa332b45df
5 changed files with 52 additions and 42 deletions
+11 -7
View File
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AssetStudio
namespace AssetStudio
{
public class StaticBatchInfo
{
@@ -58,6 +53,15 @@ namespace AssetStudio
{
var m_RayTraceProcedural = reader.ReadByte();
}
if (version >= (2023, 2)) //2023.2 and up
{
var m_RayTracingAccelStructBuildFlagsOverride = reader.ReadByte();
var m_RayTracingAccelStructBuildFlags = reader.ReadByte();
}
if (version >= (2023, 3)) //2023.3 and up
{
var m_SmallMeshCulling = reader.ReadByte();
}
reader.AlignStream();
}
else
@@ -128,7 +132,7 @@ namespace AssetStudio
var m_UseLightProbes = reader.ReadBoolean();
reader.AlignStream();
if (version >= 5)//5.0 and up
if (version >= 5) //5.0 and up
{
var m_ReflectionProbeUsage = reader.ReadInt32();
}