cyberfox

hello everybody,
we have a problem with the Mecanim, we dont't know how to do mix between spine animation. And why when the animator changes state, some images of the previous animation remains visible??Even if the transition is set to 0.
Thanks for the support!
cyberfox
  • Сообщения: 4

cartonino

I have the same problem :(
cartonino
  • Сообщения: 2

Pharan

In basic terms, you should be able to fix this by doing these two things:
1. Search for Animation.cs in your spine runtime in your Unity project and open that file.
- Look for this line: https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-csharp/src/Animation.cs#L451
- Comment it out (by adding // before it)
2. You have to make sure that any image/attachment changes you keyed in the previous animations are also keyed in the next animation.

The original reason behind this behavior was for flexibility (it lets users explicitly manage what animations should and shouldn't change, especially when more than one is being played). But changes are coming to the runtime soon that will also allow basic uses like this without extra keys or changing the runtime code.
Аватара пользователя
Pharan
  • Сообщения: 5366

cyberfox

Thanks Pharan, i resolve the transition with the opacity of the images and now work great!
cyberfox
  • Сообщения: 4


Вернуться в Unity