- Home /
 
 
               Question by 
               Jotakuun · Oct 24, 2014 at 06:40 PM · 
                instantiateprefabplayerfollow  
              
 
              Instantiate a prefab and follow player position in runtime?
Hello UnityCommunity!,
It's possible to instantiate a prefab in player position and follow his movements?
I'm actually instantiating a prefab in player position with transform variables but I don't know how can I make prefab follows player, it's posible to instantiate prefab inside the player as a parent?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Anxo · Oct 24, 2014 at 06:52 PM
 prefab.transform.parent = player.transform
 
              you are welcome, check off the answer so people know its closed. Also, check this out. http://unity3d.com/learn/tutorials/modules/beginner/scripting
Your answer