{"action":"created","issue":{"url":"https://api.github.com/repos/vexe/VFW/issues/21","labels_url":"https://api.github.com/repos/vexe/VFW/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/vexe/VFW/issues/21/comments","events_url":"https://api.github.com/repos/vexe/VFW/issues/21/events","html_url":"https://github.com/vexe/VFW/issues/21","id":82490462,"number":21,"title":"Callback on array length change in editor","user":{"login":"YacineFenina","id":8093066,"avatar_url":"https://avatars.githubusercontent.com/u/8093066?v=3","gravatar_id":"","url":"https://api.github.com/users/YacineFenina","html_url":"https://github.com/YacineFenina","followers_url":"https://api.github.com/users/YacineFenina/followers","following_url":"https://api.github.com/users/YacineFenina/following{/other_user}","gists_url":"https://api.github.com/users/YacineFenina/gists{/gist_id}","starred_url":"https://api.github.com/users/YacineFenina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YacineFenina/subscriptions","organizations_url":"https://api.github.com/users/YacineFenina/orgs","repos_url":"https://api.github.com/users/YacineFenina/repos","events_url":"https://api.github.com/users/YacineFenina/events{/privacy}","received_events_url":"https://api.github.com/users/YacineFenina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T16:17:05Z","updated_at":"2015-05-30T00:58:43Z","closed_at":"2015-05-30T00:58:43Z","body":"Hello !\r\n\r\nThank you for your work! That is really awesome !\r\nI would like to know if there is a way to have an \"OnChanged\"  when length of an array instead of the item modification  (or a List) is modified ?\r\n\r\nEdit : Actually I'm searching, and my real question is : Am I doing it well\r\n Maybe I can extend ListDrawer and call a delegate in right function ? And add it to the TypeDrawerMapper ? Is it a good way ?\r\n\r\nThanks in advance !"},"comment":{"url":"https://api.github.com/repos/vexe/VFW/issues/comments/106968875","html_url":"https://github.com/vexe/VFW/issues/21#issuecomment-106968875","issue_url":"https://api.github.com/repos/vexe/VFW/issues/21","id":106968875,"user":{"login":"vexe","id":1978827,"avatar_url":"https://avatars.githubusercontent.com/u/1978827?v=3","gravatar_id":"","url":"https://api.github.com/users/vexe","html_url":"https://github.com/vexe","followers_url":"https://api.github.com/users/vexe/followers","following_url":"https://api.github.com/users/vexe/following{/other_user}","gists_url":"https://api.github.com/users/vexe/gists{/gist_id}","starred_url":"https://api.github.com/users/vexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexe/subscriptions","organizations_url":"https://api.github.com/users/vexe/orgs","repos_url":"https://api.github.com/users/vexe/repos","events_url":"https://api.github.com/users/vexe/events{/privacy}","received_events_url":"https://api.github.com/users/vexe/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T00:58:43Z","updated_at":"2015-05-30T00:58:43Z","body":"You can use 'OnChanged' (See OnChangedExample.cs) - I tried it, it gave me notification when an array count changed, but not a list. So I did some modifications to make it work. See https://github.com/vexe/VFW/commit/4fedb85d33f4cd7a77a8710d56fb49b86d3c27b7 and https://github.com/vexe/VFW/commit/55a4b0ade5c23aa0f6c7f32583ba3e9979d4aea9\r\n\r\nThis should now work:\r\n\r\n<code>\r\n    [OnChanged(\"OnListChanged\")]\r\n    public List<GameObject> testList;\r\n\r\n    [OnChanged(\"OnArrayChanged\")]\r\n    public GameObject[] testArray;\r\n\r\n    void OnListChanged(List<GameObject> list)\r\n    {\r\n        Log(list.Count);\r\n    }\r\n\r\n    void OnArrayChanged(GameObject[] array)\r\n    {\r\n        Log(array.Length);\r\n    }\r\n</code>"}}