• RuntimesUnity
  • Spine effect visible in editor but not in Unity — only on 3rd attack

Hi, I'm working on a 2D action game using Spine animations in Unity.
I have a 4-hit air combo animation, and each attack has a visual effect attached in Spine.
Everything looks fine inside the Spine editor, but in Unity, the 3rd attack's effect suddenly doesn't appear at runtime.

・All effects are setup the same way inside Spine
・The actual animation plays correctly, only the VFX is missing

Any idea what could be causing this?

This issue only started happening recently — the VFX on the 3rd attack was displaying correctly in Unity until yesterday.
I haven't made changes to the Spine file or Unity animation setup for that part, so I'm not sure what broke it.

  • Misaki ответили на это сообщение.

    It sounds like the issue with the missing visual effect for the 3rd attack in Unity could be related to attachment visibility or animation mixing. First, ensure that the attachment for the 3rd attack's effect is visible in the setup pose in Spine. You can check this by switching to SETUP mode in the Spine Editor. If the effect is visible there, the problem might be related to how animations are mixed or queued in Unity. Make sure that the animation for the 3rd attack is not being overridden or mixed out by another animation. You can also try previewing the animation in the Spine Editor using the Preview view (ALT+R) to see if the issue is present there. If the problem persists, consider checking if there have been any changes in the Unity project that might affect the rendering of the effect, such as changes in the draw order or shader settings.

    Vein Sorry for the late reply. Spinebot's advice seems to be on point. You may want to change the mixAttachmentThreshold for the mix. This is also explained in the video below from 11:15 to 12:03. (The property name was slightly different when this video was created, but it is the same thing.):