Hi there!
I use SkeletonAnimation.UpdateLocal to position a shadow at a particular angle, no matter the rotation of my sprite. This is done as follows:
void SetUpdateLocal() {
SkeletonAnimation.UpdateLocal += UpdateShadowPositions;
}
void UpdateShadowPositions(ISkeletonAnimation animated) {
float rotation = transform.eulerAngles.z;
_shadowBone.Rotation = -rotation;
_shadowDeadBone.Rotation = -rotation;
}
However this seems to have stopped working. Eventually the shadow is repositioned correctly, but it is not done each frame, rather after 1 second or so. The only thing I can see that would have affected it is updating to the latest version of the Spine runtimes. I don't suppose this was changed in some way?
I tried changing to UpdateWorld, but it still does not update each frame, instead updating after 1 second. I believe the Spine object might be static at this time (not playing any animation, just looping idle), would this have anything to do with it?
Thanks!