支持2022
parent
26d46be47b
commit
d83df4a2a5
|
@ -15,7 +15,7 @@ using System.Reflection;
|
||||||
namespace Obfuz
|
namespace Obfuz
|
||||||
{
|
{
|
||||||
|
|
||||||
#if UNITY_2019 || UNITY_2020 || UNITY_2021
|
#if UNITY_2019 || UNITY_2020 || UNITY_2021 || UNITY_2022
|
||||||
internal class ObfuzProcess2021 : IPreprocessBuildWithReport, IPostprocessBuildWithReport
|
internal class ObfuzProcess2021 : IPreprocessBuildWithReport, IPostprocessBuildWithReport
|
||||||
{
|
{
|
||||||
private static bool s_obfuscated = false;
|
private static bool s_obfuscated = false;
|
||||||
|
@ -35,9 +35,11 @@ namespace Obfuz
|
||||||
|
|
||||||
private static string GetScriptAssembliesPath(object obj)
|
private static string GetScriptAssembliesPath(object obj)
|
||||||
{
|
{
|
||||||
#if UNITY_2021
|
#if UNITY_2021_1_OR_NEWER
|
||||||
object settings = obj.GetType().GetProperty("settings").GetValue(obj);
|
//object settings = obj.GetType().GetProperty("settings").GetValue(obj);
|
||||||
string path = (string)settings.GetType().GetProperty("OutputDirectory").GetValue(settings);
|
//string path = (string)settings.GetType().GetProperty("OutputDirectory").GetValue(settings);
|
||||||
|
//return path;
|
||||||
|
return "Library/Bee/PlayerScriptAssemblies";
|
||||||
#else
|
#else
|
||||||
return "Library/PlayerScriptAssemblies";
|
return "Library/PlayerScriptAssemblies";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,7 +14,7 @@ using UnityEditor.Compilation;
|
||||||
namespace Obfuz
|
namespace Obfuz
|
||||||
{
|
{
|
||||||
|
|
||||||
#if UNITY_2022_1_OR_NEWER
|
#if DISABLE
|
||||||
internal class ObfuzProcess2022OrNewer : IPreprocessBuildWithReport, IProcessSceneWithReport, IPostprocessBuildWithReport
|
internal class ObfuzProcess2022OrNewer : IPreprocessBuildWithReport, IProcessSceneWithReport, IPostprocessBuildWithReport
|
||||||
{
|
{
|
||||||
private static bool s_inBuild = false;
|
private static bool s_inBuild = false;
|
||||||
|
|
Loading…
Reference in New Issue