- Home /
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!
Answer by Melontank · Dec 01, 2013 at 08:25 PM
Solved*
Turns out I was using the animator controller on the "spotlight" game object instead of the actual "flash light" game object.
Your answer
Follow this Question
Related Questions
Can't set animator bool to True 1 Answer
how to make multiple transition from one state? 1 Answer
Overwriting animation parameters play animation while other is already playing? 0 Answers
How to create animations that can be edited with scripts in runtime? 1 Answer
What is the proper way to wait for an Animator Controller to update? 1 Answer