{"action":"opened","issue":{"url":"https://api.github.com/repos/Seanba/Tiled2Unity/issues/64","repository_url":"https://api.github.com/repos/Seanba/Tiled2Unity","labels_url":"https://api.github.com/repos/Seanba/Tiled2Unity/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Seanba/Tiled2Unity/issues/64/comments","events_url":"https://api.github.com/repos/Seanba/Tiled2Unity/issues/64/events","html_url":"https://github.com/Seanba/Tiled2Unity/issues/64","id":184688569,"number":64,"title":"Possibility to import Materials in Resource folder","user":{"login":"dpavon","id":2647322,"avatar_url":"https://avatars.githubusercontent.com/u/2647322?v=3","gravatar_id":"","url":"https://api.github.com/users/dpavon","html_url":"https://github.com/dpavon","followers_url":"https://api.github.com/users/dpavon/followers","following_url":"https://api.github.com/users/dpavon/following{/other_user}","gists_url":"https://api.github.com/users/dpavon/gists{/gist_id}","starred_url":"https://api.github.com/users/dpavon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpavon/subscriptions","organizations_url":"https://api.github.com/users/dpavon/orgs","repos_url":"https://api.github.com/users/dpavon/repos","events_url":"https://api.github.com/users/dpavon/events{/privacy}","received_events_url":"https://api.github.com/users/dpavon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-23T12:58:33Z","updated_at":"2016-10-23T12:58:33Z","closed_at":null,"body":"Hi, sorry to trouble you with more procedurally generation-based issues, but I think I might not be the only one who would like this feature.\r\n\r\nThe idea is: I'm importing maps with unity:resource = True (as discussed on previous issues) to have them on a Resources folder, where I can instantiate them whenever needed.\r\n\r\nThis time, however, I would like to change the \"tileset\" of the map on execution. For this, I created a map with all possible tilesets, so that I guarantee thay they are created by Tiled2Unity as a Material and Texture.  Materials are there, but I cannot change them in runtime as they do not exist on a \"Resources\" folder.\r\n\r\nI guess code would be very similar to that change I requested back then with unity:resource. I went and changed method \"GetMaterialAssetPath\" so that it would always save them on that folder. However, best approach would be the same as with Prefabs, so adding an \"extraPath\" variable to mehtod \"GetPrefabAssetPath\" would work. \r\n\r\nAlthough I don't think a \"property\" per map is the way to go this time. If one map uses tileset A with that property, and other does not have the property, but uses the tileset, we would end up with duplicated materials. Maybe a checkbox inside Tiled2Unity.exe?\r\n\r\nThanks again!"}}
{"actor":{"display_login":"dpavon"}}