Our game is a city building where you can pick up objects to move them around.
When you pick up an object, we animate the material's tint colour to have a flashing effect that indicates the object is picked up. We are using the Skeleton Tint shader, and updating the "_Color" property to do this.
This mostly works well. When I pick up most objects the material changes to an instance material and the colour tinting happens properly.
However, for some objects that animate the material is constantly swapping back and forth between the instance material and the shared material, which breaks the tinting. I've tried forcing it to stay as the instance material in several ways, but it seems like something on Spine's side is forcing it back to the shared material, and this seems directly related to the animation in some way.
Is there something that would cause that behaviour?
I've uploaded a video showing how the material is swapping when the object is picked up
Thanks!