Skip to content
loudoweb edited this page Mar 4, 2016 · 1 revision

There are different macros in spriter.macros.SpriterMacros:

texturePackerChecker

Check texture packer atlas to add .png at the end of files. Use case : You use atlas without the extension of the files (eg: Sparrow/Starling atlas).

cacheSCML

Create a binary of your scml during compilation, it will reduce parsing time in your app. Use case : You have a big scml and parsing takes too much time. Then you can use spriter.definitions.ScmlObject.unserialize(path) to parse the binary.

cacheFolderSCML

Create a binary of all scml in a folder during compilation to reduce parsing time in your app. Use case : You have many scml and parsing takes too much time. Then you can use spriter.definitions.ScmlObject.unserializePack(path) to parse the binary