Hi, I have an issue displaying all the content from the exported spine animation when multiple skeleton animations are instantiated on the screen, and dynamically changed skin and animation.

When it's just one element on the screen then it works fine, it shows all the content when manually trying in the editor we change the skins and states.
Interestingly when pressing Space on the keyboard the missing background parts of the animations are shown.

symbolchangetest.txt
2kB
Related Discussions
...

@BranislavZ Thanks for sending the reproduction project. Unfortunately we can't reproduce any issues with the provided project since it's not clear what the scene should look like. The scene has a description text "Issue: the helm is missing the background in one of 2 states", but neither can we see any helm when entering play mode, nor can we find any reference image that shows what the skeleton should look like.

Please send us a minimal Unity project which demonstrates just what is going wrong, with any unnecessary logic removed. Also please share a screenshot what the scene is expected too look like and what you are seeing instead. Note that we don't know your Spine project, and we don't have the time to dig through a Spine project with 15 animations and 30 skins. Likely all but a single one of these skins and animations can be removed from the project without affecting the issue.

Ok, I will submit a new project for review.
Thanks.

@BranislavZ Thanks for sending the additional repro package. Now I understood that instead of "helm" you actually meant "hammer". The other symbols were quite confusing as well, as far as I can tell only a single item is necessary instead of 4 rows of 4 items each.

You are missing a call to SetSlotsToSetupPose().
skeletonAnims[i].skeleton.SetSlotsToSetupPose();

In general it's recommended to always have a look at the spine-runtimes and spine-unity documentation first when you are encountering any issues with basic functionality:
http://esotericsoftware.com/spine-api-reference#Skeleton-setSkin
https://esotericsoftware.com/spine-unity#Setting-Skins

6 jours plus tard

It worked, thanks for the support.

You're welcome, glad it helped.