在引用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 }
http://www.cnblogs.com/leng-yuye/archive/2012/06/06/2538114.html
在Unity3d编辑器中加入菜单以及菜单项,布布扣,bubuko.com
时间: 2024-11-05 02:28:56