I am making a 2D Android game in Unity 5.3.4f1 using C# and have tried nearly everything to get my animations to play. I have tried the following (and possibly more)
Setting the animation to legacy
Using an animation component
Using an animator component
Using an animation controller
Various bits of code
Please help me start my animations. Thanks in advance.
I found a solution! Using an Animator Controller, I was able to make my animations play by making a state in the controller that uses the animation clip I wanted to play, then making a transition to that state with a trigger as a condition. I then used the function animator.SetTrigger ("triggerName");
to set off the trigger and play the animation. Hope this helps someone!