在工具栏创建Button点击Button,在Asset下创建窗口
双击“Enbanced Save”显示如下窗口,即Asset下创建窗口
在Editor文件夹下创建脚本TestEditor
using UnityEngine;
using System.Collections;
using UnityEditor;
public class TestEditor : EditorWindow
{
[MenuItem("Examples/Enhanced Save")]
static void Init()
{
Rect contextRect = new Rect(10, 10, 100, 100);
EditorUtility.DisplayPopupMenu(contextRect, "Assets/", null);
}
}