I am trying to enable the Main Camera of the Player through script but it just gives me an error.
Here is the code: myPlayer.transform.FindChild('Main Camera').gameObject.SetActive = true;
I am getting this error:
Assets/Scripts/NetworkManager.js(41,64): BCE0049: Expression ‘myPlayer.transform.FindChild(‘Main Camera’).gameObject.SetActive’ cannot be assigned to.
PLEASE HELP ![]()