Hello and sorry, I know this has been covered a multitude of times, yet I haven't found a piece of working code on exactly how to do this! Some of the answers I've found are 3 years old and don't seem relevant, then others offer some code snippets that I can't figure out how to apply using the Pixi Spine runtime.
I also haven't figured out if I need to generate different art for the different scales I might want (I saw you do that via the Texture Packer settings) - or just scale down from the larger set.
I'm using the Illustrator script to export my layers to a Spine project, which works great. Everything but the bones is already ready for me - making it super easy to set up my project.
But the sizing of my vector pieces is all over the map (using openclipart.org to get cool stuff!) - so often I have to change the resolution on export - which I found out makes it size differently in Spine. I ended up with a crab that looked great in Spine but at runtime was 5 times larger than I wanted!
So I tried resizing the PIXI container, and realized that wouldn't work. I know this is a simple fix - but if somebody could give me a link to an actual example - I have indeed searched the docs, forum, and web - and this 1 line of code still eludes me :notme:
Thanks in advance - I'm making a reading app for autistic and other disabled kids, and Spine has already helped me to animate a fish and some kelp, making the app way better already. Will definitely post links once I have a demo online.
This turned out to be really easy, as Ivan over at the pixi spine github repo added some new code just today! You'll have to update your pixi-spine file, then you can use the code posted here:
Choose Skeleton Scale https://github.com/pixijs/pixi-spine/blob/master/examples/choose_skeleton_scale.md
Awesome! My crab is now a perfect size.