{"author_name":"baba_s","title":"\u3010Unity\u3011ArgumentException: You can only call GUI functions from inside OnGUI.","description":"\u6982\u8981 using System.Threading.Tasks; using UnityEditor; using UnityEngine; public sealed class Example : EditorWindow { [MenuItem( \"Tools/Hoge\" )] private static void Open() { GetWindow<Example>(); } private async void OnGUI() { if ( GUILayout.Button( \"\u5b9f\u884c\" ) ) { await Task.Run( () => { } ); } GUILayout.\u2026","width":"100%","type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20210531/20210531155029.gif","author_url":"https://blog.hatena.ne.jp/baba_s/","blog_url":"https://baba-s.hatenablog.com/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","height":"190","url":"https://baba-s.hatenablog.com/entry/2021/07/14/090000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2021%2F07%2F14%2F090000\" title=\"\u3010Unity\u3011ArgumentException: You can only call GUI functions from inside OnGUI. - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Unity","Unity - \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0"],"blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","published":"2021-07-14 09:00:00"}