When you're getting missing atlas and missing regions errors in Unity, it usually means the exported atlas file doesn't contain all the required regions. Here are the most common causes and solutions:
Check Your Export Settings
- Make sure you're exporting with
Pack enabled in the Export dialog
- Choose the appropriate packing option:
- Use
Attachments to pack only images used by attachments
- Use
Image folders if you need to use pack.json configuration files
Verify Your Skins Are Set to Export
Since you're working with skins, make sure all your skins and their attachments have the Export property checked:
- Select each skin in the tree
- Check that
Export is enabled in the properties at the bottom of the tree
- Do the same for any attachments within those skins
If an attachment isn't set to export, it won't be included in the atlas.
Check the Atlas File Contents
After exporting, open your .atlas.txt file in a text editor and verify that it actually contains entries for:
- Blue/Firefly1.png
- Purple/Firefly1.png
- Yellow/Firefly1.png
If these regions are missing from the atlas file, the issue is with the export/packing process.
Unity Import Requirements
Make sure you have all 3 required files in Unity:
- Skeleton data (
.json or .skel.bytes)
- Atlas description (
.atlas.txt)
- Atlas texture image(s) (
.png)
Re-export with Clean Settings
Try resetting your texture packer settings and re-exporting:
- Reset the texture export options in Spine
- Make sure the atlas extension is set to
.atlas.txt
- Re-export both the skeleton data and atlas
If the problem persists after trying these steps, there might be an issue with your specific project setup. The error message showing "Current Atlases: --none--" suggests Unity isn't finding any atlas file at all, so double-check that the .atlas.txt file is in the same directory as your skeleton data file in Unity.