Search Unity

Question Applying animator to a new door causes it to teleport to the old animator location?

Discussion in 'Editor & General Support' started by ihaveadutchgf, Feb 3, 2023.

  1. ihaveadutchgf

    ihaveadutchgf

    Joined:
    Apr 3, 2022
    Posts:
    5
    So as the question states, I am making a second door and I thought that I would be able to reuse the same animator that I used previously for a door. The old door functions as intended, however when I launch my scene and the new door has the same animator attached to it as the old door, it teleports next to the old doors location and I am not sure why. Please help!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    You have to only animate child objects. Set your door up like so:

    Screen Shot 2023-02-03 at 11.44.32 AM.png

    MyDoor is what you prefabbify.

    Hinge is what you animate