Hello,
I'm trying to work out the best way to pick objects up while using Spine as my animation system...
As far as I can tell, the best way to do this is to have a pick-up animation where the character's hand can be targeted to a position, have a slot in the character's hand, and then set the appropriate sprite to the slot at runtime. That's all fine.
The bit I'm stuck on is what comes either side of that: is there a workflow anyone can recommend for how to go from having a complex game object in a scene (i.e. a game object with its own scripts attached), to just a sprite while the character is holding it, and back to the game object when you put it down? - The game object needs to be in a very specific position relative to the character for this to work - if it's not, there's a noticeable jump in position when the game object is set inactive, and the sprite is added. There's also the need to track which game object belongs to which sprite (there are hundreds of things that can be picked up) so that if you drop the object, the game object can be activated again.
Is there a different/better way to do this?
And am I right in thinking there's no way for the game object itself to be attached to a slot?
Thanks!