[unity] Fixed render separator broken with slot alpha 0. Slot alpha 0 now skips attachments at multiple submeshes as well. Closes #2920.

This commit is contained in:
Harald Csaszar 2025-09-02 13:18:56 +02:00
parent 50aca5e231
commit 6e281d6de7
2 changed files with 6 additions and 2 deletions

View File

@ -603,7 +603,11 @@ namespace Spine.Unity {
for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) {
Slot slot = drawOrderItems[slotIndex];
if (!slot.Bone.Active) {
if (!slot.Bone.Active
#if SLOT_ALPHA_DISABLES_ATTACHMENT
|| slot.A == 0f
#endif
) {
clipper.ClipEnd(slot);
continue;
}

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.",
"version": "4.2.109",
"version": "4.2.110",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",