{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/18591","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/18591/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/18591/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/18591/events","html_url":"https://github.com/godotengine/godot/issues/18591","id":319920045,"number":18591,"title":"Object metadata. What to do with it?","user":{"login":"reduz","id":6265307,"avatar_url":"https://avatars2.githubusercontent.com/u/6265307?v=4","gravatar_id":"","url":"https://api.github.com/users/reduz","html_url":"https://github.com/reduz","followers_url":"https://api.github.com/users/reduz/followers","following_url":"https://api.github.com/users/reduz/following{/other_user}","gists_url":"https://api.github.com/users/reduz/gists{/gist_id}","starred_url":"https://api.github.com/users/reduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reduz/subscriptions","organizations_url":"https://api.github.com/users/reduz/orgs","repos_url":"https://api.github.com/users/reduz/repos","events_url":"https://api.github.com/users/reduz/events{/privacy}","received_events_url":"https://api.github.com/users/reduz/received_events","type":"User","site_admin":false},"labels":[{"id":279097162,"url":"https://api.github.com/repos/godotengine/godot/labels/discussion","name":"discussion","color":"ee77ee","default":false},{"id":279097966,"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-05-03T13:26:33Z","updated_at":"2018-05-03T18:11:13Z","closed_at":null,"author_association":"OWNER","body":"As you guys probably know, all objects in  Godot can have metadata. This is accessed from code as:\r\n\r\n```\r\nobj.set_meta(\"key\",value)\r\nobj.has_meta(\"key\")\r\nobj.get_meta(\"key\")\r\n```\r\n\r\nThis metadata is even serialized, but currently it's usage by the community is rather unclear to us developers. In the editor itself, It's mostly unused. There remain a few cases where the 2D editor puts metadata into nodes (for locking and marking as bones) but this could be moved away. \r\n\r\nMetadata can't be edited by users from the UI. This would be doable, but then editor should not store data in there anymore. This is also easy to do.\r\n\r\nI'm also not sure if anyone uses these functions from code in games.\r\n\r\nSo, we were discussing  with other devs, what should we do with it? I see three paths for this:\r\n\r\n1) Move the remaining usages of it away from it and deprecate the feature\r\n2) Move the remaining usages of it away from it, but keep the feature AND make metadata available for editing in inspector\r\n3) Move the remaining usages away from it and do nothing.\r\n\r\nFeedback very welcome on this!\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/386387033","html_url":"https://github.com/godotengine/godot/issues/18591#issuecomment-386387033","issue_url":"https://api.github.com/repos/godotengine/godot/issues/18591","id":386387033,"user":{"login":"eon-s","id":10215987,"avatar_url":"https://avatars3.githubusercontent.com/u/10215987?v=4","gravatar_id":"","url":"https://api.github.com/users/eon-s","html_url":"https://github.com/eon-s","followers_url":"https://api.github.com/users/eon-s/followers","following_url":"https://api.github.com/users/eon-s/following{/other_user}","gists_url":"https://api.github.com/users/eon-s/gists{/gist_id}","starred_url":"https://api.github.com/users/eon-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eon-s/subscriptions","organizations_url":"https://api.github.com/users/eon-s/orgs","repos_url":"https://api.github.com/users/eon-s/repos","events_url":"https://api.github.com/users/eon-s/events{/privacy}","received_events_url":"https://api.github.com/users/eon-s/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T18:11:13Z","updated_at":"2018-05-03T18:11:13Z","author_association":"NONE","body":"Is unused due to the lack of information about it, it can be useful if gets better access (like inspector) and can reduce some complexity in certain nodes, also used on scenes that do not need a script and for \"data nodes\".\r\n\r\nso, 2 too."}}
{"actor":{"display_login":"eon-s"}}