- تم التحرير
Make an copy of a skeleton and its current animation
Hi! Basically, title.
I'm planning to add a Last Known Position feature, like this:
... but for this I would need to duplicate my character, his skin, and his current animation. I see the 'instantiate' example, which lets me copy a character, but no idea how to give him the same frames of the current animations being played.
Any idea how to solve this, would be super appreciated!
Do you need to keep more than the mesh of the saved animation frame? If not, you can take a look at the SkeletonGhost.cs
and SkeletonGhostRenderer.cs
example components that come with the spine-unity runtime on how to duplicate the mesh of the current animation timepoint and render it with another MeshRenderer
.
That will come in handy, thanks a lot Harald <3 - I'll be editing my post once I get some results 8)
You're welcome, glad it helped! :nerd: