unity how to move an object to another object
// 3D
transform.position = new Vector3(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y, GameObject.Find("Object").transform.position.z);
// 2D
transform.position = new Vector2(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y);
Also in C#:
- c# multi threading example
- Unity if object doens't exist
- unity how to change the text on a button
- player script unity
- unity get velocity at point
- c# webrequest cookies
- c# program exit
- how to reduce garbage collection c#
- unity array c#
- c# null conditional
- constructor in inherited class c#
- send type as argument c#
- c# build string out of list of strings
- c# input integer
- c# post request
- get out of foreach statement c#
- unity how to move an object to another object
- c# string methods
- what is c# used for
- binding c#
- unity rotate vector
- unity pro version free download
- console.writeline c#
- c# datetime dd/mm/yyy hh:mm:ss