• Unity
  • Blinking loop

  • Изменено
Related Discussions
...

Help me create a blinking loop for my dog asset. I have no idea what to do. I know how to animate him blinking. However, how do I make it loop using Unity 2d? ..or is that something I do in Spine first? What code do I write? Or what plug-ins do I need? I can't find this answer anywhere.

Hi, you can find an example component for playing the blink animation repeatedly with random time intervals in an example scene of the spine-unity runtime: Spine Examples/Getting Started/1 The Spine GameObject

This sample component is easy to use: Add your skeleton in the scene, then adding the Spine Blink Player component and set your blink animation reference asset to Blink Animation. The usage is in the following video:

Please check the actual scene for details on how the code works.

Thank you so much! I feel relieved. =)