I was wondering how I could do this. I have a script and it needs to get the transform of another object.
thanks in advance
I was wondering how I could do this. I have a script and it needs to get the transform of another object.
thanks in advance
If the component is unique, you may want to use FindObjectOfType.
Its a transform
Look here:
http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html
Thank you