fernfreak Posted September 4, 2018 Share Posted September 4, 2018 I was looking through the Loader class, and it seems that in order to load an asset, I need to name each file, like in: loader.add('example-sprites', 'example-sprite-sheet.json'); Is it possible to load all of the files in a folder without specifying each one by name? I know that I'd like to cache all the files within a specific folder, but I don't actually know what the filenames are prior to loading. If this isn't possible, what would be the best practice for this sort of situation when the files aren't known? Really appreciate any advice on this-- thanks in advance! Quote Link to comment Share on other sites More sharing options...
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.