Hey, we have many items in our 2d game. We have used spine to animate their characters.
Can we define these items as attachments while they are not inside spine as sprites and instead, add them in runtime? We don't want to bind these item sprites to specific character.
Also, if we don't utilize attachments and as an alternative, use bones and add runtime items to specific bones, how can we specify order for them? For example a mom hugs her baby. The baby has their own animation. Now, we want to render it between some mom sprites (hands, chest)
Render sprites as attachment in runtime while they are outisde spine project
luciddream Can we define these items as attachments while they are not inside spine as sprites and instead, add them in runtime? We don't want to bind these item sprites to specific character.
Yes, please see the example scenes Spine Examples/Other Examples/Mix and Match
and Mix and Match Equip
.
Also, if we don't utilize attachments and as an alternative, use bones and add runtime items to specific bones, how can we specify order for them? For example a mom hugs her baby. The baby has their own animation. Now, we want to render it between some mom sprites (hands, chest)
See the SkeletonRenderSeparator
component here:
https://esotericsoftware.com/spine-unity#SkeletonRenderSeparator