I am trying to set gameobjects active to my player as soon as they spawn, I cannot keep them active in prefab to prevent errors across the network I am using.
var Weapon : GameObject;
var PVeiw : GameObject;
function Start (){
Weapon.SetActive = true;
PVeiw.SetActive = true;
}
It won’t let that run because of an error,
“Expression ‘self.Weapon.SetActive’ cannot be assigned to.”
“Expression ‘self.Pview.SetActive’ cannot be assigned to.”
Please help me understand why this is.