问题思考:
最近研究Unity3d的拓展编辑器时,做了个有趣的小实验,先贴代码:
using UnityEngine;
using UnityEditor;
using System.Collections;
/*
* 自定义Editor窗口
*/
public class Editor2 : EditorWindow
{
[MenuItem("GameObject/window")]
static void AddWindow()
{
//创建窗口
Rect wr = new Rect(0, 0, 500, 500);
Editor2 window = (Editor2)EditorWindow.GetWindowWithR