• RuntimesUnity
  • Alpha from bone to unity text

Hi! How can I use unity text with spine animation?
I added unity text in bone as a child gameobject. Position, rotation, scale are okay, but I need apply alpha from bone to unity text, because animation has smooth appearance and disappearance.
Below is an example of the final version, I need use unity text instead text in atlas for change value.
Sorry for my english) Thank you!

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    dan99nik I am not sure if this is the best solution, but one solution I have come up with is to add an event key (http://esotericsoftware.com/spine-keys#Events) at the time the alpha animation starts, and start the alpha animation of the text when the event is fired. I mean the alpha animation of the text would be done by the Unity animation system or code, but only the timing of when it starts would be taken from the event key. The event key can also have a float or int value, from which you can determine the length of time it will take to fade in and out.

    If you would like to know how to react to AnimationState events, please see the "Processing AnimationState Events” section on the documentation:
    http://esotericsoftware.com/spine-unity#Processing-AnimationState-Events

    • dan99nik ответили на это сообщение.

      Misaki Thank you very much!