Unity/Editor/メニュー追加
提供: 初心者エンジニアの簡易メモ
Assets/Editor/CustomMenu.cs
using UnityEngine; using UnityEditor; public class CustomMenu { [MenuItem("CustomMenu/CustomItem1 %i")] private static void CustomItem1() { Debug.Log("item1"); } [MenuItem("CustomMenu/CustomItem2 %h")] private static void CustomItem2() { Debug.Log("item2"); } }