how to lock position of gameobject unity code example Example: how to get position of gameobject in unity GameObject.Find("Your_Name_Here").transform.position;