TheWorst

  • 15 ديسمبر 2022
  • انضمّ(ت) 15 فبراير 2017
    DarkTI wrote

    Could you clarify how to separate images drawn together to be on the same atlas pages when we export them for Unity? Thanks.

    You can control which images are grouped together on the same atlas page by organizing your images into subfolders:
    Texture Packing - Spine User Guide: Folder structure

    @TheWorst, likely you have your images something like this:

    images/doll/wings/wing_single_lx.png
    

    If you run the texture packer on the images folder than the path in the atlas will be doll/wings/wing_single_lx. It looks like you are instead running the texture packer on the doll folder, which is why you get paths like wings/wing_single_lx.png.

    Note if you need to change your images folder you can use find and replace to fix up your attachment names:
    Tree - Spine User Guide: Find and Replace
    It is also shown in the video on that page at 5:24:
    https://youtu.be/guZ-zdr4IDw?t=324

    Oh, you mentioned you are doing the packing as part of the JSON or binary data export? In that case it should pack the images folder and paths in the atlas should match the names of the attachments, as they do in the Spine editor.