修复Unity 2019-2021上的编译错误

backup
walon 2025-05-16 20:02:21 +08:00
parent d8537e17b5
commit 76d4b5d5af
2 changed files with 2 additions and 10 deletions

View File

@ -1,8 +1,6 @@
{
"name": "Obfuz.Editor",
"rootNamespace": "",
"references": [
"GUID:7e4de3067c2ab5c43a03ac49273dfb68",
"GUID:370c0d0004ef2414cb803d3ffd331dce"
],
"includePlatforms": [
@ -14,12 +12,6 @@
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [
{
"name": "com.code-philosophy.hybridclr",
"expression": "",
"define": "USE_HYBRIDCLR"
}
],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -27,7 +27,7 @@ namespace Obfuz.Unity
public void OnPostBuildPlayerScriptDLLs(BuildReport report)
{
#if UNITY_2019
#if !UNITY_2022_1_OR_NEWER
RunObfuscate(report.files);
#else
RunObfuscate(report.GetFiles());