build前面板测试

This commit is contained in:
2025-07-14 18:32:27 +08:00
parent 1c4d3b41a2
commit 377828df7e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Stary.Evo.Editor;
using UnityEditor;
using UnityEditor.Build;
@@ -14,8 +15,9 @@ namespace Stary.Evo
public void OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport report)
{
string platform = EditorPrefs.GetString("ChangePlayerSchema");
// build前
if (ChangePlayerSchema.PLayerMode == PLayerMode.EDITOR_SIMULATEMODE)
if (Enum.Parse<PLayerMode>(platform) == PLayerMode.EDITOR_SIMULATEMODE)
{
int id = EditorUtility.DisplayDialogComplex("提示",
$"当前为[{PLayerMode.EDITOR_SIMULATEMODE}]模式,请选择切换得热更模式!",

View File

@@ -1,6 +1,6 @@
{
"name": "com.staryevo.main",
"version": "1.3.16",
"version": "1.3.17",
"displayName": "00.StaryEvo",
"description": "This is an Framework package(后台服务器版本端口9527)",
"unity": "2021.3",