I am currently trying to create a simple RTS game in which I want villagers to be able to mine and walk around. Currently I have two animations implemented (idle and walking). Now I am trying to implement the mining animation. Therefore I created a pickaxe which I want to only be visible in the mining animation and not in the others. I created a seperate gameobject "pickaxe" and created a single bone armature for it. Then I created the bone constraint "child of" in pose mode and selected the left hand bone.
So the animation is done but now the villager carries the pickaxe with him all the time. (also in idle and walking). I tried to use animate the viewport and renderer visibility by inserting a keyframe for those properties. However it seems, that this is then applied to the villager itself as he disapears when starting the animation. When this is done I want to export this to unity and use it there. I would be very happy for any kind of help! Thank you!
Best Luca