{"action":"created","issue":{"url":"https://api.github.com/repos/playcanvas/engine/issues/316","labels_url":"https://api.github.com/repos/playcanvas/engine/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/316/comments","events_url":"https://api.github.com/repos/playcanvas/engine/issues/316/events","html_url":"https://github.com/playcanvas/engine/issues/316","id":88854800,"number":316,"title":"Asset file prefix","user":{"login":"demalus","id":6488033,"avatar_url":"https://avatars.githubusercontent.com/u/6488033?v=3","gravatar_id":"","url":"https://api.github.com/users/demalus","html_url":"https://github.com/demalus","followers_url":"https://api.github.com/users/demalus/followers","following_url":"https://api.github.com/users/demalus/following{/other_user}","gists_url":"https://api.github.com/users/demalus/gists{/gist_id}","starred_url":"https://api.github.com/users/demalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demalus/subscriptions","organizations_url":"https://api.github.com/users/demalus/orgs","repos_url":"https://api.github.com/users/demalus/repos","events_url":"https://api.github.com/users/demalus/events{/privacy}","received_events_url":"https://api.github.com/users/demalus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-16T22:20:29Z","updated_at":"2015-06-17T14:08:32Z","closed_at":null,"body":"Would it be possible to add an optional url prefix for assets? Currently, this exists for scripts in framework_application.js:_preloadScripts `scriptUrl = pc.path.join(this._scriptPrefix, scripts[i]);`.  \r\n\r\nIt would be useful to have another field in the Application options (or maybe reuse scriptPrefix?) for the rest of the assets loaded in config.json (materials, textures, models, etc.). This is useful if the URI does not match the file locations - for example, if your page is served as part of a REST API call, the content is likely to be stored at a different URI. This also allows static assets to be served from S3 or a CDN."},"comment":{"url":"https://api.github.com/repos/playcanvas/engine/issues/comments/112816062","html_url":"https://github.com/playcanvas/engine/issues/316#issuecomment-112816062","issue_url":"https://api.github.com/repos/playcanvas/engine/issues/316","id":112816062,"user":{"login":"demalus","id":6488033,"avatar_url":"https://avatars.githubusercontent.com/u/6488033?v=3","gravatar_id":"","url":"https://api.github.com/users/demalus","html_url":"https://github.com/demalus","followers_url":"https://api.github.com/users/demalus/followers","following_url":"https://api.github.com/users/demalus/following{/other_user}","gists_url":"https://api.github.com/users/demalus/gists{/gist_id}","starred_url":"https://api.github.com/users/demalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demalus/subscriptions","organizations_url":"https://api.github.com/users/demalus/orgs","repos_url":"https://api.github.com/users/demalus/repos","events_url":"https://api.github.com/users/demalus/events{/privacy}","received_events_url":"https://api.github.com/users/demalus/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T14:08:32Z","updated_at":"2015-06-17T14:08:32Z","body":"I think that since there's already a structure to the export (files/assets/id), that it makes sense there would only be one location for all the assets.  Splitting up the files directory, in my opinion, is not a likely case because it would bring a whole host of other problems - at that point you'd be better off using the engine directly instead of using an export from PlayCanvas.com"}}