在引用UZGUI插件时,u3d编辑器的菜单条发生了变化,新增了菜单和菜单项,于是乎自己也像尝试一下,看了EZGUI的About_EZ_GUI脚本文件后,结果大出我所料,原来SO EASY!
1 using UnityEngine;
2 using UnityEditor;
3
4 public class Example {
5
6 [MenuItem("new Menu/new/new new/new item")]
7 static void showDialog()
8 {
9 EditorUtility.DisplayDialog("title","messsage","ok");
10 }
11 }