Hey guys. Below is an example of my system. it’s the unity First person camera asset with my Pickaxe model attached to the controller. I’ve set up a mining system so that when you’re near ore a GUI will appear that basically allows you to press it and attempt to mine the ore. You will either gain the ore or miss it, simple. What i want to know is how to make it so that when i press the button my axe with play a little animation in which it’ll go up & then down. I have no idea how to work animations or make it do this in Unity so help is appreciated ^-^!
have a look at “The Animator Controller” and “Animator Scripting”
setup the animator with a trigger driven transition from idle to mining, have the button click set the trigger.