[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 93b85a5b57
commit 92db076394
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

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