nicloay / unity-spine-importer

Bring data from spine (EsotericSoftware) in to the unity3d
BSD 3-Clause "New" or "Revised" License
37 stars 14 forks source link

export with scaling #13

Closed klvnptr closed 10 years ago

klvnptr commented 10 years ago

hey Nicolay

Thank you for this great importer.

I have a question though: If I export the texture atlas from spine with different scales, than the importer doesn't scale the skeleton with it. Is there any solution for this? Textures are too big in Spine, and I want to import 1:1 sprites in Unity.

What do you think? Thank you

nicloay commented 10 years ago

Hi mcz, thanks for feedback.

you can manually try fix that. After you make prefab, add it to the scene. then in search box of inspector enter search pattern "SpriteRenderer" and change scale manually. or another solution which you can try after you make prefab calculate your scale and change pixelPerunit of your atlas sprite. probably it will help.

I can make all of this through code, but honestly i don't know when I'll find a time for this project. right now i fix only critical bugs.

klvnptr commented 10 years ago

thank you so much. i will try that.

klvnptr commented 10 years ago

changing the pixel per unit worked perfectly.