mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-11-14 07:42:42 -05:00
Improve support of Tuanjie assets
This commit is contained in:
@ -53,6 +53,16 @@
|
|||||||
{
|
{
|
||||||
var m_RayTraceProcedural = reader.ReadByte();
|
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
|
if (version >= (2023, 2)) //2023.2 and up
|
||||||
{
|
{
|
||||||
var m_RayTracingAccelStructBuildFlagsOverride = reader.ReadByte();
|
var m_RayTracingAccelStructBuildFlagsOverride = reader.ReadByte();
|
||||||
|
|||||||
@ -83,7 +83,7 @@ namespace AssetStudio
|
|||||||
{
|
{
|
||||||
var m_MipsStripped = reader.ReadInt32();
|
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();
|
var m_WebStreaming = reader.ReadBoolean();
|
||||||
reader.AlignStream();
|
reader.AlignStream();
|
||||||
|
|||||||
@ -27,7 +27,7 @@ namespace AssetStudio
|
|||||||
public bool IsAlpha => BuildType == BuildTypes.Alpha;
|
public bool IsAlpha => BuildType == BuildTypes.Alpha;
|
||||||
public bool IsBeta => BuildType == BuildTypes.Beta;
|
public bool IsBeta => BuildType == BuildTypes.Beta;
|
||||||
public bool IsPatch => BuildType == BuildTypes.Patch;
|
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)
|
public UnityVersion(string version)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user