• Bugs
  • [Runtime] Animation Slot Problem in Unity

In my test project, there has two slots in animation: "nei jiao" and "nei datui".
in the animation named "a1" , I hide the "hei jiao" at the begining of animation ,
in the animation named "a2", I hide the "nei datui" at the begining of animation,
such as the json :

And the problem in runtime:

When I switch the animation, two slots will not be render, because they are hidden by each animation.

how can I fix it ? Reset ?

sorry for my poor english.

Thanks .

Related Discussions
...

You need to set the slot visibility at the start of each animation so it knows which slots should be visible.
Alternatively you can use skeleton.setSlotsToSetupMode to set your slot visibility back to how it looks in setup mode when you switch animations.
See http://esotericsoftware.com/spine-using ... s#Skeleton for more information.

Thanks you .


Shiu a écrit

You need to set the slot visibility at the start of each animation so it knows which slots should be visible.
Alternatively you can use skeleton.setSlotsToSetupMode to set your slot visibility back to how it looks in setup mode when you switch animations.
See http://esotericsoftware.com/spine-using ... s#Skeleton for more information.

setSlotsToSetupPose ?

looklu a écrit

Thanks you .


Shiu a écrit

You need to set the slot visibility at the start of each animation so it knows which slots should be visible.
Alternatively you can use skeleton.setSlotsToSetupMode to set your slot visibility back to how it looks in setup mode when you switch animations.
See http://esotericsoftware.com/spine-using ... s#Skeleton for more information.

setSlotsToSetupPose ?

Oops, setSlotsToSetupPose of course! 😃