To reduce the size of your Spine 2D animations for better performance in Unity, you can follow these steps:
Adjust the Texture Packer Settings: Set the scale to 0.5 in the Texture Packer settings under Output. This will reduce the size of the texture atlas.
Adjust the SkeletonDataAsset Scale: In Unity, you need to ensure that the scale of the SkeletonDataAsset
matches the scale you used in the Texture Packer. For example, if you set the scale to 0.5 in the Texture Packer, you should also set the SkeletonDataAsset
scale to 0.5.
Max Width and Height: Adjusting the Max Width and Height in the Texture Packer settings can help fit more images into a single atlas page, but it won't directly affect the scale of the skeleton. Ensure that the Max Width and Height are appropriate for your needs.
Here is a step-by-step guide:
In Spine:
- Go to the Texture Packer settings.
- Set the Output scale to 0.5.
In Unity:
- Locate your
SkeletonDataAsset
.
- Set the
Scale
property to 0.5.
This ensures that both the texture atlas and the skeleton data are scaled consistently, resulting in the desired reduction in size.
For more detailed information, you can refer to the following resources:
By following these steps, you should be able to reduce the size of your Spine animations effectively for better performance in Unity.