Unityエディター拡張機能(c)ContextMenu(インスペクタービューに右クリックメニューを追加)
Unity Editor Extension Contextmenu
using System.Collections using System.Collections.Generic using UnityEditor using UnityEngine public class Test : MonoBehaviour { [ContextMenu('MyItem')] void MyTestA() { Debug.Log(1) } }
ContextMenuを使用する場合、次の関数は非静的です。
このスクリプトはMonoBehaviourを継承します。
このスクリプトをEditorフォルダーに配置することはできません。
このスクリプトをオブジェクトにドラッグする必要があります。