Hi,
I would like to create a series of animations in Spine using placeholder graphics and then allow a user to replace all of the graphics at runtime. This would be used for a player editor.
I see that you this with the following sample code:
GetComponent<SkeletonRenderer>().skeleton.FindSlot(targetSlot).Attachment = SpineAttachment.GetAttachment(attachmentPath, skeletonDataSource);
But I would like to be able to do it with a Unity Image or Sprite. I will be streaming the image data from the internet so it can't be pre-baked. Is this possible?
Thanks,
Peter
29 Jul 2016, 13:08
It looks like this is covered in these posts. Thanks! 🙂
http://esotericsoftware.com/forum/on-re-using-skeletons-for-multiple-imageMaps-question-6590
http://esotericsoftware.com/forum/Change-Mesh-Image-at-Runtime-6476
http://esotericsoftware.com/forum/Replacing-referenced-image-in-spine-Unity-Runtime-5869
http://esotericsoftware.com/forum/Sprite-Switcher-vs-Skins-4959
29 Jul 2016, 13:16
It looks like the SpriteAttacher component will do what I want.