{"action":"created","issue":{"url":"https://api.github.com/repos/modesttree/Zenject/issues/106","repository_url":"https://api.github.com/repos/modesttree/Zenject","labels_url":"https://api.github.com/repos/modesttree/Zenject/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/modesttree/Zenject/issues/106/comments","events_url":"https://api.github.com/repos/modesttree/Zenject/issues/106/events","html_url":"https://github.com/modesttree/Zenject/issues/106","id":135419319,"node_id":"MDU6SXNzdWUxMzU0MTkzMTk=","number":106,"title":"Editor-time Injection","user":{"login":"hinshun","id":6493975,"node_id":"MDQ6VXNlcjY0OTM5NzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6493975?v=4","gravatar_id":"","url":"https://api.github.com/users/hinshun","html_url":"https://github.com/hinshun","followers_url":"https://api.github.com/users/hinshun/followers","following_url":"https://api.github.com/users/hinshun/following{/other_user}","gists_url":"https://api.github.com/users/hinshun/gists{/gist_id}","starred_url":"https://api.github.com/users/hinshun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hinshun/subscriptions","organizations_url":"https://api.github.com/users/hinshun/orgs","repos_url":"https://api.github.com/users/hinshun/repos","events_url":"https://api.github.com/users/hinshun/events{/privacy}","received_events_url":"https://api.github.com/users/hinshun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-22T13:38:15Z","updated_at":"2018-07-05T10:48:29Z","closed_at":null,"author_association":"NONE","body":"Perhaps this isn't a use-case for Zenject, but I found myself needing a dependency that needs to be resolved at Editor-time for OnDrawGizmos event callbacks (Drawing helpers for editing a specific type of object)\n\nFor now I made a ScriptableObject and added a [SerializeField] reference on the MonoBehaviour, but it really isn't Zenject-style to do this sort of thing. I was wondering if you have encountered this issue before and how you went about solving this?\n"},"comment":{"url":"https://api.github.com/repos/modesttree/Zenject/issues/comments/402683441","html_url":"https://github.com/modesttree/Zenject/issues/106#issuecomment-402683441","issue_url":"https://api.github.com/repos/modesttree/Zenject/issues/106","id":402683441,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjY4MzQ0MQ==","user":{"login":"svermeulen","id":810762,"node_id":"MDQ6VXNlcjgxMDc2Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/810762?v=4","gravatar_id":"","url":"https://api.github.com/users/svermeulen","html_url":"https://github.com/svermeulen","followers_url":"https://api.github.com/users/svermeulen/followers","following_url":"https://api.github.com/users/svermeulen/following{/other_user}","gists_url":"https://api.github.com/users/svermeulen/gists{/gist_id}","starred_url":"https://api.github.com/users/svermeulen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svermeulen/subscriptions","organizations_url":"https://api.github.com/users/svermeulen/orgs","repos_url":"https://api.github.com/users/svermeulen/repos","events_url":"https://api.github.com/users/svermeulen/events{/privacy}","received_events_url":"https://api.github.com/users/svermeulen/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T10:48:29Z","updated_at":"2018-07-05T10:48:29Z","author_association":"MEMBER","body":"@realworld666 \r\n\r\nCouple things I notice there\r\n- FromComponentInHierarchy only makes sense in 'contexts' that have a hierarchy.  StaticContext does not, so I don't expect that will work\r\n- I'm not sure how Editor derived classes work, but if you can hook into when they are created you just need to run `StaticContext.Container.Inject(this)` somewhere instead of creating properties and lazily calling Resolve\r\n\r\nI don't know why you'd be getting that error though"}}
{"actor":{"display_login":"svermeulen"}}