[unity] Fixed SkeletonGraphic exception on some Unity versions when blend modes used. Closes #2971.

This commit is contained in:
Harald Csaszar 2025-11-07 14:16:38 +01:00
parent a52100cd00
commit a2b83f338d
2 changed files with 4 additions and 3 deletions

View File

@ -1181,8 +1181,9 @@ namespace Spine.Unity {
if (blendModeMaterial != null)
sharedMaterials[i] = blendModeMaterial;
#if HAS_CULL_TRANSPARENT_MESH
canvasRenderers[i].cullTransparentMesh = allowCullTransparentMesh ?
mainCullTransparentMesh : false;
if (!UsesSingleSubmesh)
canvasRenderers[i].cullTransparentMesh = allowCullTransparentMesh ?
mainCullTransparentMesh : false;
#endif
}
}

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity",
"displayName": "spine-unity Runtime",
"description": "This plugin provides the spine-unity runtime core and examples. Spine Examples can be installed via the Samples tab.",
"version": "4.3.26",
"version": "4.3.27",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",