From 7aa35b5b8cefcca2ade39a8d29b2c2ccaa5331fc Mon Sep 17 00:00:00 2001 From: Perfare Date: Fri, 14 Aug 2020 01:31:49 +0800 Subject: [PATCH] Fix get class from divided UnityEngine.dll --- AssetStudioUtility/AssemblyLoader.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/AssetStudioUtility/AssemblyLoader.cs b/AssetStudioUtility/AssemblyLoader.cs index 9958b25..40bee80 100644 --- a/AssetStudioUtility/AssemblyLoader.cs +++ b/AssetStudioUtility/AssemblyLoader.cs @@ -35,7 +35,19 @@ namespace AssetStudio { if (moduleDic.TryGetValue(assemblyName, out var module)) { - return module.GetType(fullName); + var typeDef = module.GetType(fullName); + if (typeDef == null && assemblyName == "UnityEngine.dll") + { + foreach (var pair in moduleDic) + { + typeDef = pair.Value.GetType(fullName); + if (typeDef != null) + { + break; + } + } + } + return typeDef; } return null; }