Slaus Posted May 30, 2017 Share Posted May 30, 2017 Resources to load are specified with a list of .json files generated by TexturePacker. I need to cancel caching so intend to append "file.png?123456" unique numbers to every file specified within .json files. I specified middleware to do that but somehow middleware is actually called for file.png even before it is called for file.json Is it possible to modify contents of loading .json files on the fly? Or just solve such problem in any other way? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 30, 2017 Share Posted May 30, 2017 Its not possible out-of-the-box. You have to modify spritesheet loader. https://github.com/pixijs/pixi.js/blob/dev/src/loaders/spritesheetParser.js , either the parser itself: https://github.com/pixijs/pixi.js/blob/dev/src/core/textures/Spritesheet.js Quote Link to comment Share on other sites More sharing options...
Slaus Posted May 30, 2017 Author Share Posted May 30, 2017 (edited) Got it. Thank you. Edited May 30, 2017 by Slaus problem solved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.