I am a newbie and have been reading and practicing various tutorials about unity and C#. I am trying to learn how to add a weapon to a character and make it behave / move like it should.
I downloaded the free Base Male asset (link below) and have tried adding a sword (2nd link below, free asset).
(character base male link)
(Sword link)
I cannot get the sword to stay in position. I know I am doing something wrong. I read various tutorials and numerous forums postings on the net but still cannot get a grip on this.
Can someone please show me how it can be done or provide steps on how I would do this? Any help would be appreciated.
jister. Is this something I should do in code? Maybe the various tutorials have confused me completely…but I was thinking the following steps are required:
Add character to scene (humonid, ensure bones all match up)
Add weapon to scene. Drag into position
Move the weapon to the correct hierarchy. I dragged this to the exact bone I wanted to bind to.
When I play various built-in animations, the sword does not in place
You could do this by script if you want. Could you post a screenshot of where it is in the hierarchy?
If by code look for the bone with GameObject.Find and then set the swords transform.position to the gameobejcts position and the set the swords transform.parent to the bone transform.