Hi,
I am having this problem:
- Enter Play Mode options: disabled Domain reload
- Enter play mode and play some animation, everything works as expected, clipping attachments work
- Exit play mode
- Enter play mode again, without triggering domain reload
- Animation has wrong clipping mask - it is there, but the shape is slightly incorrect.
Notes:
- if domain reload is enabled on entering play mode, everything works as expected
- I can't share actual project and creating reproduction project could be time-consuming as I don't know where the problem exactly lies
- checking the example spineboy portal animation, it works fine, so it must be something specific to our case
Do you have any idea where I could investigate more? Anything that rely on domain reload?
So, I find out the problem only appears when setting TrackTime (example code below) and adding that Update resolves the issue. Although it is strange, that if I enable domain reload, it works even without the Update. It might be related to some script order, I guess?
void LateUpdate()
{
trackEntry.TimeScale = 0f;
trackEntry.TrackTime = someNormalizedProgress;
// Added this line
skeletonAnimation.Update(0)
}