ahh how do i make a animation play?

i want to make my animation play on my fps i have animations but i don’t know where to put them or the scripts so if anyone could help it would be appreciated thank you

add an animation component to your character.
drag the animations onto the animations array
you can drag one into the default animation to play (for example, your idle animation)
Hit play… you should see your character idling.

For scripting…
get the animation component… something like this
Animation anim = GetComponent();

then just play whatever animation you want with the animation clip name.

no i should have been more specific i ment my weapon

you still were not specific.


will work on ANY object with animation component including your weapon