Leadreaper

Hello!

I followed the 8-directional character twitch stream and setup my character to have changing arms that are stored inside a slot with multiple skin placeholders. I then animated the arms switching from open hand to closed fist by keyframing the changing skin placeholder on the characters arm slot. Next I exported the character and tested it in threejs and the arms disappeared when the animation was played. Is there something that I am missing with spine-threejs to make the animation handle the skin placeholder changing automatically at runtime??

Please help I'm stuck :grinfake

---

I have this in my game loop

skeletonMesh.update(delta);
skeletonMesh.state.apply(skeletonMesh.skeleton);
У вас нет необходимых прав для просмотра вложений в этом сообщении.
Leadreaper
  • Сообщения: 2

Nate

Sorry for the late response!

See Skeleton setSkin. You may need to call Skeleton setSlotsToSetupPose after setting the skin. That will show what is visible in the setup pose. If you want different attachments from that visible, you'll need to set the manually (or use an animation to set them).
Аватара пользователя
Nate

Nate
  • Сообщения: 10750

Leadreaper

Oh ok, Thank you very much Nate.
Leadreaper
  • Сообщения: 2


Вернуться в Runtimes