- Home /
Cant set animation to legacy
I just recently learned about importing characters with textures and animations into unity. Everything is working fine at the start, animations imported, but then I try to use a script to call these animations just for tests.
public class NewBehaviourScript : MonoBehaviour {
public GameObject roblock;
void Start () {
roblock.GetComponent<Animation>().Play();
}
// Update is called once per frame
void Update () {
}
}
Really basic, ran into the "Must be legacy" issue, and I cant get past it. I followed what another answer said to do, but I can't because it's all greyed out.
:/ Any help?
A bit of info that might be helpful, I'm not sure if this is a Unity 5 thing or not, but when i imported I did not get the animation files as separate files, They are in this Import Settings group so that might be the problem?
Answer by mroyusa · Dec 10, 2017 at 10:10 PM
I have same issue, i feel like all the assets i bought are no good.
Answer by shadowpuppet · Dec 11, 2017 at 06:16 AM
what were the other answers? did you first select the animated object in the project folder ( not in scene) and in the inspector change the Rig to legacy? This automatically gives the object the Animation component and changes the animations imported with it to Legacy. I just did this to an object I imported that I was using the Animator component. All I did was change the Rig type and add the animations the Animation component Unity automatically added
Answer by ChristianBlandford · Apr 05, 2018 at 09:42 AM
I know this is late, but you need to Duplicate the animation and then you can edit the inspector properties.
Answer by intensemx · Jan 03, 2021 at 01:33 PM
Hey I know this is a late reply but maybe someone else might need the answer. before you go in "debug" mode you have to click "edit" on the animation and then go in to "debug" You then head to .Rig. Animation Type. Legacy
Your answer
Follow this Question
Related Questions
How do I play legacy animations properly in Unity C# 1 Answer
What are uses of GetHashcode with Legacy Animation Component? 0 Answers
Can I make animations snap to a frame? 1 Answer
Animation rigging play mode and build difference 0 Answers
Character spins constantly when using legacy animation, game claims animation does not exist. 1 Answer