I want to disable multiple gameObjects for a weapon pickup script, but its not exactly working the way i would like it to. It gives me an error if i try to do this:
GameObject.Find("GameObjectName").SetActiveRecursively (false);
And i don’t know a way around that.
Whenever you have an error, you’re supposed to tell us what it is.
The error just pretty much said you can’t use SetActiveRecursively on GameObject[ ]
MissingMethodException: Method not found: ‘UnityEngine.GameObject[ ].SetActiveRecursively’.
If there’s no way around it that’s fine, i think i’m gonna try this from a different approach.
I copy+pasted onto my project and it works as expected.
Hmm… ok i think it wasn’t working for me because i was searching for tags, but i got it working now.