Search Unity

Accidentally overwrote player prefab. How can I attach the saved animations/animator to a new object

Discussion in '2D' started by mepashby, Feb 28, 2019.

  1. mepashby

    mepashby

    Joined:
    Feb 9, 2019
    Posts:
    5
    I'm a massive idiot and accidentally overwrote my player prefab with my map prefab and now I've lost my player. I can remake it with the assets and scripts, and I still have the animation files. Is it possible to attach them to a new object or will I have to recreate all the player's animations from scratch?

    I know I should be backing up/using version control. I'm fairly new to all this and I hadn't set it up yet

    Any help is appreciated <3
     
  2. Geejayz

    Geejayz

    Joined:
    Feb 8, 2016
    Posts:
    73
    You should still be able to re-use your animations. Have you tried dragging the animator component on to your new object? Unfortunately, I'm in work :( and can't try this out but you definitely won't have lost everything.