Trying to Animate in Unity
Unity & Code
This didn’t go well…I must admit. For some odd reason the C# Script would not work nor would it activate my character. An error message keeps showing up the I need to fix all the compilers first. Nevertheless, despite it not working, here’s a step by step guide of what I did.
Step 1:
Pick a character you made or one from Mixamo. and download two different character animations one thats Ideal and another of your choice, I chose samba dancing.
Step 2:
Drop your Idle character in unity’s scene.
Go to animator > parameters > + > create new Bool
name the Bool the behavior you want your character to do i.e I called mine “isdancing”
Step 3 :
Map the behaviors by dropping the ideal character first then adding the other character that’s dancing. Create a transition between the two.
Click on the transition > unmark has exit time on both > have the first transition be “true” and the other “false”.
Step 4 :
Create a new C# Script and paste the following into it. Make sure you delete the “isdancing” and replace it with whatever you named your Bool.
Step 5 :
Save and see your character dance.
*Unfortunately I don’t have any footage to show because it wouldn't work for me. but I hope it does for you.
Tutorials i’ve used to comprehend the whole process :