添加自定义菜单

作者:追风剑情 发布于:2014-4-10 14:47 分类:Unity3d

u3d-custom-menu.png

using UnityEngine;
using UnityEditor;

public class CustomMenu {

    [MenuItem("Custom/MenuItem1 #&c")]
    static public void MenuItem1()
    {
        Debug.Log("Click MenuItem1");
    }

    [MenuItem("Custom/MenuItem2 #&c")]
    static public void MenuItem2()
    {
        Debug.Log("Click MenuItem2");
    }
}

 

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号