Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

make parent follow child object

Discussion in 'Scripting' started by Mickii26, Dec 2, 2016.

  1. Mickii26

    Mickii26

    Joined:
    Aug 25, 2016
    Posts:
    14
    Okay, so i need for my parent object to follow my child object.
    I know that then i move my parent to the child i also move the child, but i don't know a way to get around this.
    Hope someone can help me, because i really can't find out.
     
    Coldhell likes this.
  2. Stef_Morojna

    Stef_Morojna

    Joined:
    Apr 15, 2015
    Posts:
    289
    If I were you, I wouldn't have them as parent/child. And just use 2 separate gameObjects that 1 follows another.
     
  3. Fabian-Haquin

    Fabian-Haquin

    Joined:
    Dec 3, 2012
    Posts:
    231
  4. Mickii26

    Mickii26

    Joined:
    Aug 25, 2016
    Posts:
    14
    well i understand, its just for a short time i need the parent to follow the child and not the other way around, normally its the child following the parent.

    anyway i split them up, and put them back together so it works