{"action":"created","issue":{"url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/11","labels_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/11/comments","events_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/11/events","html_url":"https://github.com/ncsoft/Unreal.js/issues/11","id":118974116,"number":11,"title":"Adding to Arrays","user":{"login":"mflux","id":1041360,"avatar_url":"https://avatars.githubusercontent.com/u/1041360?v=3","gravatar_id":"","url":"https://api.github.com/users/mflux","html_url":"https://github.com/mflux","followers_url":"https://api.github.com/users/mflux/followers","following_url":"https://api.github.com/users/mflux/following{/other_user}","gists_url":"https://api.github.com/users/mflux/gists{/gist_id}","starred_url":"https://api.github.com/users/mflux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mflux/subscriptions","organizations_url":"https://api.github.com/users/mflux/orgs","repos_url":"https://api.github.com/users/mflux/repos","events_url":"https://api.github.com/users/mflux/events{/privacy}","received_events_url":"https://api.github.com/users/mflux/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-26T05:24:10Z","updated_at":"2015-11-26T06:03:55Z","closed_at":"2015-11-26T06:03:55Z","body":"It wasn't clear from the documentation, as well as reading the source.\r\n\r\nCreating a new property array looks like:\r\n\r\n        properties() {\r\n            this.vertices/*Vector[]*/;    \r\n            this.triangles/*int[]*/;\r\n        }    \r\n\r\nHowever doing none of the following worked:\r\n\r\n            this.vertices.add({X:0,Y:0,Z:0});\r\n            this.vertices.Add({X:0,Y:0,Z:0});\r\n\r\n            this.vertices = [];\r\n            this.vertices.push({X:0,Y:0,Z:0});\r\n\r\nA few questions \r\n\r\n* What's the proper way to instantiate an array? How do you modify the array?\r\n* Do properties overwrite inherited properties? For example if this class's baseclass already has a vertices array made from a blueprint, does this reference the underlying class' vertices array? Or is it creating a new one?"},"comment":{"url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/comments/159814734","html_url":"https://github.com/ncsoft/Unreal.js/issues/11#issuecomment-159814734","issue_url":"https://api.github.com/repos/ncsoft/Unreal.js/issues/11","id":159814734,"user":{"login":"nakosung","id":2463571,"avatar_url":"https://avatars.githubusercontent.com/u/2463571?v=3","gravatar_id":"","url":"https://api.github.com/users/nakosung","html_url":"https://github.com/nakosung","followers_url":"https://api.github.com/users/nakosung/followers","following_url":"https://api.github.com/users/nakosung/following{/other_user}","gists_url":"https://api.github.com/users/nakosung/gists{/gist_id}","starred_url":"https://api.github.com/users/nakosung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakosung/subscriptions","organizations_url":"https://api.github.com/users/nakosung/orgs","repos_url":"https://api.github.com/users/nakosung/repos","events_url":"https://api.github.com/users/nakosung/events{/privacy}","received_events_url":"https://api.github.com/users/nakosung/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T06:03:55Z","updated_at":"2015-11-26T06:03:55Z","body":"Please see https://github.com/ncsoft/Unreal.js/wiki/Dynamic-array:-Limitation. Currently dynamic array isn't fully implemented.\r\n\r\nTo answer to your question, properties are inherited from their base class. "}}