Back to Writing
NOTESunityanimationlegacyscripting

Unity Legacy Animation: Debug Mode Setup and Playback

November 2, 2019Updated Feb 17, 2026

![](

nv00Xn9BrQ9I56M9T8g.Nvd-vxwtgxY__v4V0_m3e-EH3RSkJ-MNaOPRVEBdvxcg.PNG.cdw0424/image.png?type=w966)

Click on the created animation and in the Inspector:

![](

yVq0-oFwsqD0fSmcNMg.ri689iZ-UH4qpLIqSa2VZ3hBEy8XnZAqmCJF3DCbZpUg.PNG.cdw0424/image.png?type=w966)

Click the dropdown next to the lock icon, then click Debug to switch to the view shown above.

At this point, check the Legacy checkbox (underlined).

How to Play:

public Animation anim;
anim.Play();
anim.Stop();

If there's only one animation clip, you don't need to specify the name in the parentheses.