• Unity
  • Multiple CanvasRenders SkeletonGraphic set skin problem

I have a spine for UI Use.
There are 4 skin, Flush_1 to Flush_4.
Flush_3 and Flush_4 would casue warning, so I enable Multiple CanvasRenderers.
In runtime, I use SetSkin to switch skin from Flush_1 to Flush_2, it's fine.
But when I set to Flush_3 or Flush_4, it dosen't work. Notthing changes.(In editor mode, I can see it changes.)
Then I try to set back to Flush_1 or Flush_2, it doesn't work anymore.
If I just switch skin between Flush_1 and Flush_2, everything is fine.

Another problem is I only use one atlas,
I don't know why it would cause multiple atlas warning.

Thanks.

Related Discussions
...
ChenTotal escreveu

Another problem is I only use one atlas,
I don't know why it would cause multiple atlas warning.

Do you have only a single atlas page, so a single .png image file?

If you only have a single .png file: Are you using special Slot blend modes at your skeleton, Addivite, Multiply or Screen?

Harald escreveu

Do you have only a single atlas page, so a single .png image file?

If you only have a single .png file: Are you using special Slot blend modes at your skeleton, Addivite, Multiply or Screen?

Yes, only a single atlas. And I would tell artist to check about Slot blend modes.

So, how about the first problem?
Could I switch skin on a spine with multiple atlas?
Is that a bug?

Thanks.

ChenTotal escreveu

Yes, only a single atlas.

I assume (automatic) translation is causing some problems with the wording here. One atlas (atlas.txt file) can contain multiple atlas pages (multiple .png files). I assume that you are using one atlas with one page (one png file), and not one atlas with multiple pages. If you are using on png file and you are not using Slot blend modes, then there is something wrong. Could you then please send us the problematic asset, so that we can have a look at it?

ChenTotal escreveu

So, how about the first problem?

Which version of the Spine Editor and which version of the spine-unity runtime (name of the unitypackage, or version.txt file in the Spine directory) are you using?

Could you please send us the problematic asset (either as an email to contact@esotericsoftware.com, or attach it to a forum posting here)? Then we can have a look at it.

I'vs sent you an e-mail, please check it.
Thanks.

Thanks for sending the reproduction asset. We will have a look at it and get back to you as soon as we've figured out what's going wrong.


Harald escreveu

And I would tell artist to check about Slot blend modes.

Your Spine project is using Multiply blend modes, and your skins differ only in these slots which are using special blend modes.
Unfortunately you are using SkeletonGraphic with version 3.8 of Spine and spine-unity, where Slot blend modes were not yet supported on SkeletonGraphic. This is fully supported in spine-unity 4.0, so if possible, we would recommend to upgrade your Unity and Spine projects to 4.0. You can find the upgrade guide here:
Spine-Unity 3.8 to 4.0 Upgrade Guide

The issue ticket for Slot blend modes support was the following one, in case you can't upgrade to 4.0 and want to manually include the code changes in 3.8 (although this has not been tested and might cause problems due to other missing changes that were added in 4.0):
https://github.com/EsotericSoftware/spine-runtimes/issues/1316

Harald escreveu

Thanks for sending the reproduction asset. We will have a look at it and get back to you as soon as we've figured out what's going wrong.


Harald escreveu

And I would tell artist to check about Slot blend modes.

Your Spine project is using Multiply blend modes, and your skins differ only in these slots which are using special blend modes.
Unfortunately you are using SkeletonGraphic with version 3.8 of Spine and spine-unity, where Slot blend modes were not yet supported on SkeletonGraphic. This is fully supported in spine-unity 4.0, so if possible, we would recommend to upgrade your Unity and Spine projects to 4.0. You can find the upgrade guide here:
Spine-Unity 3.8 to 4.0 Upgrade Guide

The issue ticket for Slot blend modes support was the following one, in case you can't upgrade to 4.0 and want to manually include the code changes in 3.8 (although this has not been tested and might cause problems due to other missing changes that were added in 4.0):
https://github.com/EsotericSoftware/spine-runtimes/issues/1316

Thanks for your help.
I will try it.