unity3d ~黑科技~ 打开一个无边框窗体
文章目录
直接上图
using UnityEngine;
using UnityEditor;
using System.Collections;
public class L004Window : EditorWindow
{
static L004Window instance = null;
public static void OpenWindow()
{
if (instance == null)
{
instance = (L004Window)ScriptableObject.CreateInstance<L004Window>();
instance.position = new Rect(500, 300, 600, 400);
}
instance.ShowPopup();
instance.Focus();
}
void Update()
{
if (EditorWindow.focusedWindow != this) this.Close();
}
}

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论