Animations Wont Play, Must be marked as legacy?

Hi Everyone,

Im fairly new to unity but have a fair knowledge of programming.

I have made an animation with mechanim using a flashlight model that is a fbx file. It contains a spotlight which I use code to toggle it on and off with some code. I have a default animation that doesnt animate anything but is linked to and animation on a condition that a bool is false.

I want to be able to press “f” the toggle button in the code to turn the bool false or true, so from there it should play the animation ? Ive tried everything but it says the animation needs to be marked as legacy or something ?

I’m so confused any help will be appreciated!

[18639-screen+shot+2013-11-28+at+1.35.03+pm.png|18639]

[18640-screen+shot+2013-11-28+at+1.37.06+pm.png|18640]

Solved*

Turns out I was using the animator controller on the “spotlight” game object instead of the actual “flash light” game object.