Help please! Legacy AnimationClips are not allowed in Animator Controllers

I recorded animation for gameobject in the editor after made it legacy in debug mode, after that i added Animation component to gameobject (Cube) and define this animation clip to the Animation component on the gameobject. Animation is not imported from outside, and object has not include other generated rigs and other, but the console always printing that’s an error.

Is it bug?

What i need to do?

Tell me please=)

PS: I’m not using Animator component, i hate it =))

Here’s how we solved this problem in our project:

  1. Look at the Animation Clip in the inspector.
  2. Click the three-bar dropdown next to the lock icon in the top right.
  3. Select debug.
  4. Uncheck legacy.

Hope it works for you…

I got this error after having another error that told me to make the animations legacy. So to fix this I just removed the animation from the image and recreated it. It possibly has something to do with a version switch mid build… not sure, but the errors (actually warnings) are gone now.

Unity developers! Why this problem even exists? 8 years have passed. Why when I create a new object it is marked as legacy in the first place? In which universe would I want my objects to be in legacy mode and unusable?