【m】build apk 开发

This commit is contained in:
2025-07-02 18:14:15 +08:00
parent 15289e30c5
commit 103d1c76d4
4 changed files with 17 additions and 16 deletions

View File

@@ -25,5 +25,13 @@ public class HotfixMainResDomainEditor : UnityEditor.Editor
base.OnInspectorGUI();
HotfixMainResDomain hotfixMainResDomain = (HotfixMainResDomain)target;
hotfixMainResDomain.projectInfo.projectPackageName = $"com.xosmo.{hotfixMainResDomain.projectInfo.projectCode}";
if (hotfixMainResDomain.projectInfo.loadingScene == null)
{
Debug.LogError("HotfixMainResDomain 资源中loadingScene索引不存在请检查");
return;
}
// 获取loadingScene的Assets相对路径
hotfixMainResDomain.projectInfo.loadingScenePath = AssetDatabase.GetAssetPath(hotfixMainResDomain.projectInfo.loadingScene);
}
}