Hello, I met a problem, I have a 3.6 spine animation here, and then I open it with spine3.8, and export it as a josn file(include PNG, atlas), but the animation is not displayed in unity2020.3
The exported Spine3.8 animation can run normally in spine, and can also be previewed in unity, but it cannot be displayed at runtime
how can i solve this problem, Thanks!
The problem of converting a lower version to a higher version
I assume that you have a Canvas
GameObject parent in the hierarchy above the SkeletonGraphic
GameObject.
If you are using only additive slots and have Advanced/PMA Vertex Colors
enabled (the default), please be sure to disable Cull Transparent Mesh
at the CanvasRenderer
component above SkeletonGraphic
. This problematic setting is automatically disabled in newer spine-unity versions.
Wow, it's solved, thank you so much
There is another problem, that is, there are other resources that also perform the above operations, 3.6-->3.8, some do not need to close the "Cull Transparent Mesh" component, it can run normally, and some need to be closed" Cull Transparent Mesh" component
I found that the resources that cannot be run seem to be small, such as the special effects on a button, and the resources that can be run directly are relatively large, such as the action special effects of characters. What is the reason for this?
@plainklaughter I'm afraid I don't quite understand your problem description above. Could you please describe the problem in different words, and perhaps provide some screenshots that show the issue you are facing?
Also I would suggest using 4.1. Spine 3.8 is getting quite old and we have made many improvements since then.
Harald For example, I have two spine animations of version 3.6, the first animation is converted to version 3.8, and "Cull Transparent Mesh" does not need to be disabled, it can be displayed in unity.
The second animation, after conversion to version 3.8, needs to be disabled "Cull Transparent Mesh" to be able to display.
Does this situation have something to do with the content of the animation?
The content of the first animation is relatively rich: a person falls from top to bottom, with special effects during the falling process.
The second animation has less content: a button glow effect
Nate Thank you for your suggestion, I will try it after I solve this problem
I understand, it's the function of the "Canvas Redenrer" component, which can remove the transparent UI. If an animation effect is relatively transparent and "cull transparent mesh" is in effect, the animation will not be displayed, when I disable "cull transparent mesh", the animation can be displayed normally.
(ˊᗜˋ)/ᵗᑋᵃᐢᵏ ᵞᵒᵘ
@plainklaughter Glad it helped!
Does this situation have something to do with the content of the animation?
Yes, the problem only appears when all enabled attachments have vertex color alpha of 0.0, which is only the case with all attachments having Additive
blend mode and Advanced - PMA Vertex Colors
enabled. Then Unity will treat them as "nothing is visible" and discards the mesh, even though the shader would later interpret alpha 0.0 differently.