• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by GamingKid43 · Jun 08, 2014 at 02:04 AM · animationdebuglegacywontwork

How do I fix animation must be marked as legacy?

When I try to play the "Run" Animation it say's animation must be marked as legacy. When I go to debug mode it won't let me change the settings! Please Help!alt text

debug.png (18.9 kB)
error.png (44.8 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Jrocker2002 · Jun 08, 2014 at 03:30 AM

I had a problem with this error before. To solve this error, select your animation, and when it shows up in the inspector window, click the icon next to the lock icon and click debug. If it doesn't let you change anything you might want to try clicking the lock button and that might change something. Hope this solved your problem.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by MADLLAMA · Aug 23, 2014 at 06:22 AM

you can change animation type from 2 to 1 and check the frame rate i changed it to 30 and it worked.. and from default to looped.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by phreakhead · Sep 10, 2017 at 03:20 AM

If you don't want to mark your animations as legacy, you can use the new Playables API to play non-legacy AnimationClips:

 private List<PlayableGraph> graphs = new List<PlayableGraph> ();
 
 // Just call this function when you want to play an AnimationClip on a specific GameObject.
 // from https://docs.unity3d.com/Manual/Playables-Examples.html
 private PlayableGraph playAnim(AnimationClip clip, GameObject obj) {
     PlayableGraph playableGraph;
 
     AnimationPlayableUtilities.PlayClip(obj.AddComponent<Animator>(), clip, out playableGraph);
 
     // save all graphs we create and destroy them at the end of our scene.
     // you might need to optimize this if you make a lot of animations.
     graphs.Add (playableGraph);
 
     return playableGraph;
 }
 
 void OnDisable() {
     foreach (var g in graphs) {
         g.Destroy();
     }
     graphs.Clear ();
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by yuriki · Jul 11, 2018 at 09:01 PM

I fought with this error all day long! Nothing above didn't help me (because my animation was not inside .anim-file but inside .fbx-file) What helped me is this:

1) Delete Animation component

2) Add Animator component

3) Inside Animation tab (don't mix up with Animation component) hit Create button and save Dance.anim file (or use other name).

4) Inside Animator tab select node Dance (name as above) and in Inspector choose your clip from FBX-file for Motion field.

That's all!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Animation state could not be played. 1 Answer

[Legacy anim] ClampForever doesn't stop time ? 0 Answers

Does animating an object with children still work? (legacy) 1 Answer

Silly Legacy Animation Question.. Crossfade nor Play Seems to Achieve the Effect? 0 Answers

How to select an animation clip by index number? 7 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges