Hi there,
I've run into a bug in Unity Spine where an attachment that should be visible does not display in the following circumstance:
(For ease - YES is the animation where it should be visible and NO is the one where it should be hidden)
(This is using Unity 2018.3.12f1, and latest Spine 3.7 runtimes from GitHub)
- The attachment is turned on in the setup pose
- The YES animation does not key the visibility of the attachment
- The NO animation keys the visibility of the attachment to turn it off
- In Unity the skeleton's initial animation (set in the inspector) is the NO animation
- Code changes animation to YES immediately on start up (using SkeletonAnimation.animationName)
In this situation, the attachment is correctly turned off during initialisation for the NO animation, but when shifting over to the YES animation it does not turn the attachment on.
Visibility behaves as expected in the Spine editor, and also the issue does not occur if the animation is changed after a delay instead of being immediate.
I have emailed a repro project to contact@esotericsoftware.com.
Thanks for taking a look!