hello, what am i doing wrong? sorry im new but i was sure this was going to work, thanks. (im swapping the tag for a string?)
public string Hello;
void Update()
{
GameObject.FindGameObjectWithTag(Hello).SetActive (false); //goes wrong here
}
Hello,I was trying to make it easier for me so instead of making 100’s of scripts to find a gameobject with a tag, thought i would use string instead, so i can edit it outside the script. here’s my code, but it doesnt work? anyways around this. thanks
public string OUTSpeechBubble_NAME;
void Update()
{
GameObject.FindGameObjectWithTag (OUTSpeechBubble_NAME).SetActive (false); //this doesnt work
}