{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/12837","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/12837/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/12837/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/12837/events","html_url":"https://github.com/godotengine/godot/issues/12837","id":273141291,"number":12837,"title":"Splitting editor and runtime scripts.","user":{"login":"avencherus","id":13004169,"avatar_url":"https://avatars0.githubusercontent.com/u/13004169?v=4","gravatar_id":"","url":"https://api.github.com/users/avencherus","html_url":"https://github.com/avencherus","followers_url":"https://api.github.com/users/avencherus/followers","following_url":"https://api.github.com/users/avencherus/following{/other_user}","gists_url":"https://api.github.com/users/avencherus/gists{/gist_id}","starred_url":"https://api.github.com/users/avencherus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avencherus/subscriptions","organizations_url":"https://api.github.com/users/avencherus/orgs","repos_url":"https://api.github.com/users/avencherus/repos","events_url":"https://api.github.com/users/avencherus/events{/privacy}","received_events_url":"https://api.github.com/users/avencherus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-11T12:12:05Z","updated_at":"2017-11-12T10:55:32Z","closed_at":null,"author_association":"NONE","body":"Just a feature suggestion.  X)\r\n\r\nI use tool script quite a lot in my projects, and it is one of the big highlights for me.  However, there are situations where a lot of extra work is needed to prevent code from colliding.  Walling off code that is editor only versus code for run time only.  \r\n\r\nFor some scripts this is exactly fine, because almost all the same code is used.  Though quite often in other situations the code gets littered with extra branches, and the logic of the tool takes almost entirely different turns.  It can get very bloated and difficult to organize, especially when they have different start up behaviors.\r\n\r\nI was thinking it would be a nice added option if nodes could optionally have a resource slot for Editor Only Script.  Something that specifically only executes in the editor, and can be discarded when a project is exported.\r\n\r\n_Note:_  Leaving the old way intact though, because there would be some trade off between code duplication and branch complexity."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/343728627","html_url":"https://github.com/godotengine/godot/issues/12837#issuecomment-343728627","issue_url":"https://api.github.com/repos/godotengine/godot/issues/12837","id":343728627,"user":{"login":"n-pigeon","id":6152134,"avatar_url":"https://avatars2.githubusercontent.com/u/6152134?v=4","gravatar_id":"","url":"https://api.github.com/users/n-pigeon","html_url":"https://github.com/n-pigeon","followers_url":"https://api.github.com/users/n-pigeon/followers","following_url":"https://api.github.com/users/n-pigeon/following{/other_user}","gists_url":"https://api.github.com/users/n-pigeon/gists{/gist_id}","starred_url":"https://api.github.com/users/n-pigeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-pigeon/subscriptions","organizations_url":"https://api.github.com/users/n-pigeon/orgs","repos_url":"https://api.github.com/users/n-pigeon/repos","events_url":"https://api.github.com/users/n-pigeon/events{/privacy}","received_events_url":"https://api.github.com/users/n-pigeon/received_events","type":"User","site_admin":false},"created_at":"2017-11-12T10:55:32Z","updated_at":"2017-11-12T10:55:32Z","author_association":"CONTRIBUTOR","body":"I had idea of EditorOnlyNode, that would be stripped when doing Export.\r\nMare idea never consulted it with anybody."}}
{"actor":{"display_login":"n-pigeon"}}