Просмотр исходного кода

升级HybridCLR到4.10,增加打包检测

tanghai 2 лет назад
Родитель
Сommit
b5798ad22f

+ 6 - 0
Unity/Assets/Scripts/Editor/BuildEditor/BuildEditor.cs

@@ -101,6 +101,12 @@ namespace ET
 					return;
 				}
 				
+				if (this.globalConfig.EPlayMode == EPlayMode.EditorSimulateMode)
+				{
+					Log.Error("build package EPlayMode must not be EPlayMode.EditorSimulateMode, please select EditorMode");
+					return;
+				}
+				
 				if (platformType != activePlatform)
 				{
 					switch (EditorUtility.DisplayDialogComplex("Warning!", $"current platform is {activePlatform}, if change to {platformType}, may be take a long time", "change", "cancel", "no change"))

+ 1 - 0
Unity/Assets/Scripts/Editor/Plugins/HybridCLR/HybridCLREditor.cs

@@ -1,6 +1,7 @@
 using System.Collections.Generic;
 using System.IO;
 using HybridCLR.Editor;
+using HybridCLR.Editor.Settings;
 using UnityEditor;
 
 namespace ET

+ 1 - 1
Unity/Packages/packages-lock.json

@@ -5,7 +5,7 @@
       "depth": 0,
       "source": "git",
       "dependencies": {},
-      "hash": "5c750e9c0280530ca8a3d7be01e229029a1df569"
+      "hash": "216d09f7b65fadc5d8fcd0bba82e5ac50ca58f06"
     },
     "com.cysharp.memorypack": {
       "version": "https://github.com/Cysharp/MemoryPack.git?path=src/MemoryPack.Unity/Assets/Plugins/MemoryPack",