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!
Method mix in Unity Mecanim
- 수정됨
5일 후
I have the same problem
In basic terms, you should be able to fix this by doing these two things:
- 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)
- 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.
Thanks Pharan, i resolve the transition with the opacity of the images and now work great!