There are images I use in the Editor as reference, so they should not be exported in the Texture pages. I can place the reference images in a new skeleton if they have no animations, but I also want to preview animations in various contexts and interactions. For example, my character is able to hold different objects or is interacting with animated devices.
Currently, there's no customization when it comes to packing (in 4.0). I would like a way for the Texture Packer to exclude specific folders. Maybe detecting a specific image folder named like "null" and ignoring it during Texture Packing.
Page 1 of 1
skarasuko
1 month ago
- skarasuko
- Posts: 120
Nate
You can customize texture packing settings per folder:
Texture packing - Spine User Guide: JSON Configuration
Place a
Texture packing - Spine User Guide: JSON Configuration
Place a
pack.json
file (it's just a text file) in the folder you want to not be packed with this content:{
ignore: true
}
You can also customize other settings of course. One of the most common ones I use is to enable ignore: true
}
Combine subdirectories
only for a particular folder (and all its subdirectories):{
combineSubdirectories: true
}
combineSubdirectories: true
}
1 month ago
-
Nate - Posts: 11930
skarasuko
I placed the .json file in the folder I want ignored, but it doesn't work for some reason. Is there something else I have to consider, like do I need to use the Texture Packer instead of Export JSON?
1 month ago
- skarasuko
- Posts: 120
Misaki
pack.json
can also be used for JSON export, but it is useless unless the Image folder
is selected in the Pack
setting.Screen Shot 2022-06-29 at 11.48.41.png
You do not have the required permissions to view the files attached to this post.
1 month ago
-
Misaki - Posts: 756
skarasuko
I've already set that. So I am simply not sure why it still exported the undesired images in the folder.
1 month ago
- skarasuko
- Posts: 120
Misaki
We need to see the actual file to determine the cause. Could you send us the files that can reproduce the problem for us?
1 month ago
-
Misaki - Posts: 756
Nate
The
pack.json
files are not used when using Pack [Attachments]
. You either need to choose Image folder
or run the texture packer separately from the JSON/binary export. 1 month ago
-
Nate - Posts: 11930
skarasuko
Uploaded. Image folder has already been toggled, so I just don't know what's wrong. This is in 4.0.64 official, not 4.1 beta.Misaki wrote:We need to see the actual file to determine the cause. Could you send us the files that can reproduce the problem for us?
It might be nice to have a UI in the Editor to mark a folder as ignored and generate a .json automatically (if it works).
You do not have the required permissions to view the files attached to this post.
1 month ago
- skarasuko
- Posts: 120
Nate
You've named your file
The UI can be used to save a pack settings JSON file, which can be named
.pack.json
. It needs to be pack.json
(no leading .
).The UI can be used to save a pack settings JSON file, which can be named
pack.json
and placed in a folder. There are some settings though, like ignore
, that aren't available in the UI. 1 month ago
-
Nate - Posts: 11930
warmanw
Whaaat? I did not knowNate wrote:You can customize texture packing settings per folder:
Texture packing - Spine User Guide: JSON Configuration
Place apack.json
file (it's just a text file) in the folder you want to not be packed with this content:\You can also customize other settings of course. One of the most common ones I use is to enable
ignore: true
}Combine subdirectories
only for a particular folder (and all its subdirectories):{
combineSubdirectories: true
}

1 month ago
-
warmanw - Posts: 332
skarasuko
Oh. I see. I'll simply have to keep this in mind.Nate wrote:You've named your file.pack.json
. It needs to bepack.json
(no leading.
).
The UI can be used to save a pack settings JSON file, which can be namedpack.json
and placed in a folder. There are some settings though, likeignore
, that aren't available in the UI.
1 month ago
- skarasuko
- Posts: 120
Nate
Yep, it's neat! You can set most texture packing properties per folder. For example you might want to strip whitespace or duplicate padding on some folders, but not others.warmanw wrote:Whaaat? I did not know
Note if you use
Combine subdirectories
then any pack.json
files in those subdirectories won't be used, because the packer will try to place all the images found in the subdirectories in the same atlas page. 1 month ago
-
Nate - Posts: 11930
Mark topic unread
• Page 1 of 1
Return to Editor
- All times are UTC