dereklam0528 a écritI am deploying a game on my Android phone, but if I have enabled VSync under quality settings, the animation stop working. How can I fix that? I need to have VSync on.
We have not yet encountered such an issue on spine-unity. I assume you are using a SkeletonAnimation
component. In general there is no reason why VSync should break animation of the SkeletonAnimation
component. Do you mean that animation is not played back any more? Does it play back correctly when you change just this single project setting and build again?
Which version of Unity and the spine-unity runtime are you using?
dereklam0528 a écritUpdate: If I use Animator to control the animation, it will work fine.
I assume you mean you are using SkeletonMecanim
components. Again, there is no reason why VSync would affect SkeletonAnimation
and not SkeletonMecanim
playback.
dereklam0528 a écritBut I don't want that I have many animation and want to spawn it at runtime. I cannot create this many animators!
While I cannot quite follow the logic in this paragraph (you can just as well spawn SkeletonMecanim
skeletons as SkeletonAnimation
, also having many Animator
components is not much worse than using many SkeletonAnimation.AnimationState
objects), it is not necessary to switch to SkeletonMecanim
.