ReadMe.txt 833 B

12345678910111213141516171819
  1. This read me contains instructions for adding a new template to Zwoptex, allowing you to publish directly to a T2D ImageAsset format.
  2. 1. Open Zwoptex
  3. 2. Open preferences (cmd+,)
  4. 3. Click on "Coordinates Formats"
  5. 4. Click the plus symbol at the bottom
  6. 5. Rename to T2D
  7. 6. Change the extension to .asset.taml
  8. 7. Copy the following to the source box:
  9. <ImageAsset
  10. AssetName="{{ metadata.target.name }}"
  11. ImageFile="@assetFile={{ metadata.target.textureFileName }}{{ metadata.target.textureFileExtension }}">
  12. <ImageAsset.Cells>
  13. {% for sprite in spritesAndAliases %}<Cell Offset="{{ sprite.textureRectX }} {{ sprite.textureRectY }}" Width="{{ sprite.textureRectWidth }}" Height="{{ sprite.textureRectHeight }}"/>
  14. {% /for %}</ImageAsset.Cells>
  15. </ImageAsset>
  16. And that's it! You can now publish ImageAssets directly from Zoptex