Menu

#if UNITY_EDITOR using UnityEditor; using UnityEngine; public class MenuGC : MonoBehaviour { [MenuItem("MyMenu/Doit")] static void DoIt() { Debug.Log("Hello world"); } } #endif
C#
복사

Reference

https://docs.unity3d.com/Manual/upm-api.html
https://debuglog.tistory.com/28