Camera maincam = GameObject.Find("Main Camera").GetComponent<Camera>(); Debug.Log(maincam.transform.position);