• Unity
  • VSync Enabled - Not working

Related Discussions
...

Hello,

I 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.

Thanks

Derek

Update: If I use Animator to control the animation, it will work fine. But I don't want that I have many animation and want to spawn it at runtime. I cannot create this many animators!

dereklam0528 wrote

I 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 wrote

Update: 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 wrote

But 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.

Sorry, I just found out it is one of the plugin in the project that causing this. sorry about this.

Thanks for getting back to us, glad you've figured it out.