概要
using UnityEditor; using UnityEngine; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { Debug.Log( UnityEditorInternal.InternalEditorUtility.isApplicationActive ); } }
using UnityEditor; using UnityEngine; public class Example { [MenuItem( "Tools/Hoge" )] private static void Hoge() { Debug.Log( UnityEditorInternal.InternalEditorUtility.isApplicationActive ); } }