【m】处理由于非编辑器环境加载SceneAsset导致的打包报错

This commit is contained in:
mzh
2026-03-31 16:46:11 +08:00
parent 7426c4db7f
commit b7fe92eb39
4 changed files with 8 additions and 5 deletions

View File

@@ -8,8 +8,11 @@ public class HotfixMainResDomainEditor : OdinEditor
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
var config = (HotfixMainResDomain)target;
config.projectInfo.loadingScenePath = AssetDatabase.GetAssetPath(config.projectInfo.loadingScene);
config.projectInfo.projectPackageName = $"com.xosmo.{config.projectInfo.projectCode}";
}
}

View File

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