概要
using UnityEditor; [InitializeOnLoad] public static class Example { static Example() { EditorApplication.wantsToQuit += () => { return EditorUtility.DisplayDialog ( title : "Unity", message : "Unity を終了しますか?", ok : "はい", cancel : "いいえ" ); }; } }
using UnityEditor; [InitializeOnLoad] public static class Example { static Example() { EditorApplication.wantsToQuit += () => { return EditorUtility.DisplayDialog ( title : "Unity", message : "Unity を終了しますか?", ok : "はい", cancel : "いいえ" ); }; } }