mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2026-04-22 01:35:56 +08:00
40 lines
1020 B
C#
40 lines
1020 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace WeChatWASM
|
|
{
|
|
|
|
public class WXEditorPCHPWin : EditorWindow
|
|
{
|
|
[MenuItem("微信小游戏 / 转换PC高性能小游戏", false, 3)]
|
|
public static void Open()
|
|
{
|
|
var win = GetWindow(typeof(WXEditorPCHPWin), false, "PC高性能小游戏转换工具面板");
|
|
win.minSize = new Vector2(350, 400);
|
|
win.position = new Rect(100, 100, 600, 400);
|
|
win.Show();
|
|
}
|
|
|
|
public void OnFocus()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnFocus();
|
|
}
|
|
|
|
public void OnLostFocus()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnLostFocus();
|
|
}
|
|
|
|
public void OnDisable()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnDisable();
|
|
}
|
|
|
|
public void OnGUI()
|
|
{
|
|
WXPCSettingsHelperInterface.helper.OnSettingsGUI(this);
|
|
WXPCSettingsHelperInterface.helper.OnBuildButtonGUI(this);
|
|
}
|
|
}
|
|
}
|