2026-03-31 15:35:26 +08:00
|
|
|
using Sirenix.OdinInspector.Editor;
|
2025-07-02 16:28:08 +08:00
|
|
|
using Stary.Evo;
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
[CustomEditor(typeof(HotfixMainResDomain))]
|
2026-03-31 15:35:26 +08:00
|
|
|
public class HotfixMainResDomainEditor : OdinEditor
|
2025-07-02 16:28:08 +08:00
|
|
|
{
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
base.OnInspectorGUI();
|
2026-03-31 16:46:11 +08:00
|
|
|
|
2026-03-31 15:35:26 +08:00
|
|
|
var config = (HotfixMainResDomain)target;
|
2026-03-31 16:46:11 +08:00
|
|
|
|
|
|
|
|
config.projectInfo.loadingScenePath = AssetDatabase.GetAssetPath(config.projectInfo.loadingScene);
|
|
|
|
|
|
2026-03-31 15:35:26 +08:00
|
|
|
config.projectInfo.projectPackageName = $"com.xosmo.{config.projectInfo.projectCode}";
|
2025-07-02 16:28:08 +08:00
|
|
|
}
|
|
|
|
|
}
|