Mike018 Posted March 22, 2017 Report Share Posted March 22, 2017 Is it possible for texture packer to take all the assets in the project, create an atlas, then spit it out the atlas in a separate folder on runtime using a script? As of now, I have to click publish atlas every time an asset changes. Quote Link to comment Share on other sites More sharing options...
AndreasLoew Posted March 22, 2017 Report Share Posted March 22, 2017 You can use TexturePacker from the command line. There are 2 basic use cases for this Create and save a .tps file - use the command line to publish it: TexturePacker *.tps Create the complete atlas from command line The first one is much easier because you don't have to know all the parameters and you can preview the atlas in the UI. Quote Link to comment Share on other sites More sharing options...
alex_h Posted March 22, 2017 Report Share Posted March 22, 2017 You can run texturepacker from gulp https://www.npmjs.com/package/gulp-texturepacker You could have a watch task running on your asset folder so that gulp-texturepacker executes every time an asset changes 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.