unity 菜单栏添加新菜单
using UnityEngine; using System.Collections; using UnityEditor; public class jqmTools : CreateSphere { [MenuItem("JqmTools/init Scenes")] static void CreateSphere() { Debug.Log("hello CreateSphere"); } }
using UnityEngine; using System.Collections; using UnityEditor; public class jqmTools : CreateSphere { [MenuItem("JqmTools/init Scenes")] static void CreateSphere() { Debug.Log("hello CreateSphere"); } }