- Home /
Object Follower
Hi, can anyone please tell me how to make and object follow me from anywhere in the map as i am very new to Unity
Answer by dukearena · Apr 15, 2012 at 12:54 PM
There are many solutions, I will show the most common:
Easy and ugly way: attach the object to you; you can do this by dragging it over you or by script with followerObject.transform.parent = you.transform
. It will remain at the same distance but is very very ugly (help me to say ugly)..
Complicated and beautiful way: write a script that change the followerObject.transform.position.. Look at the ThirdPersonCamera script, I learn from it..
I suggest to read this link text and continue until it says Next in bottom of the page.. You will learn much more that you think :D
(I hope that you understand my english, forgive me if not :D )