- Home /
Question by
e_m_l_i_a_n_o · Mar 23, 2012 at 03:34 PM ·
javascriptjavascript-specific
JavaScript error BCE0005
script In this part of the script says....
mainCamera.transform.position = new Vector3 (transform.position.x, transform.position.y, mainCamera.transform.position.z);
It gave me the error
Unknow identifier:"mainCamera". (BCE0005) ¿how can I correct the error?
Comment
Where is your mainCamera variable declared? $$anonymous$$aybe you have a camera that is tagged $$anonymous$$ainCamera? If so then you refer to that as Camera.main.