From 92db07639438ceb2a9e6f96956f8d7421350e159 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 2 Sep 2025 13:18:56 +0200 Subject: [PATCH] [unity] Fixed render separator broken with slot alpha 0. Slot alpha 0 now skips attachments at multiple submeshes as well. Closes #2920. --- .../Runtime/spine-unity/Mesh Generation/MeshGenerator.cs | 6 +++++- spine-unity/Assets/Spine/package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs index 5d8e13d37..3cc6c2715 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs @@ -605,7 +605,11 @@ namespace Spine.Unity { for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) { Slot slot = drawOrderItems[slotIndex]; SlotPose slotPose = slot.AppliedPose; - if (!slot.Bone.Active) { + if (!slot.Bone.Active +#if SLOT_ALPHA_DISABLES_ATTACHMENT + || slot.A == 0f +#endif + ) { clipper.ClipEnd(slot); continue; } diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index 7cc83cfe2..a10fe0eb2 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.3.3", + "version": "4.3.4", "unity": "2018.3", "author": { "name": "Esoteric Software",