{"id":3671,"date":"2015-06-25T23:41:43","date_gmt":"2015-06-25T22:41:43","guid":{"rendered":"http:\/\/t-machine.org\/?p=3671"},"modified":"2020-01-13T15:13:19","modified_gmt":"2020-01-13T14:13:19","slug":"unity3d-missing-docs-editorwindow-lifecycle","status":"publish","type":"post","link":"http:\/\/new.t-machine.org\/index.php\/2015\/06\/25\/unity3d-missing-docs-editorwindow-lifecycle\/","title":{"rendered":"#unity3d missing docs: EditorWindow lifecycle"},"content":{"rendered":"<p>If you do any non-trivial customization of Unity Editor, you&#8217;ll almost certainly extend EditorWindow. But Unity (to date) refuses to tell anyone how to do this legally, or what the contracts you&#8217;re being held to are. Without that, many plugins on the Unity Asset Store are wrong and buggy, and sooner or later accidentally cause problems for users.<\/p>\n<p>Their fault? Partly, but I don&#8217;t blame them too much &#8211; rather: Unity&#8217;s fault for failing to document (and failing to test assets before approving them!).<\/p>\n<p>For those of you who aren&#8217;t happy shipping crappy, broken, buggy plugins (And charging for them), here&#8217;s a guide \/ reference for the lifecycle of EditorWindow. Extra info, explanations, and gotchas welcome!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow.png\" alt=\"Docs-UnityEditorWindow\" class=\"aligncenter size-full wp-image-3672\" width=\"800\" height=\"1284\" srcset=\"https:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow.png 800w, https:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow-93x150.png 93w, https:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow-187x300.png 187w, https:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow-638x1024.png 638w, https:\/\/t-machine.org\/wp-content\/uploads\/Docs-UnityEditorWindow-624x1002.png 624w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you do any non-trivial customization of Unity Editor, you&#8217;ll almost certainly extend EditorWindow. But Unity (to date) refuses to tell anyone how to do this legally, or what the contracts you&#8217;re being held to are. Without that, many plugins on the Unity Asset Store are wrong and buggy, and sooner or later accidentally cause [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,67,69],"tags":[],"_links":{"self":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/3671"}],"collection":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/comments?post=3671"}],"version-history":[{"count":2,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/3671\/revisions"}],"predecessor-version":[{"id":3941,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/3671\/revisions\/3941"}],"wp:attachment":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/media?parent=3671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/categories?post=3671"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/tags?post=3671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}