Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Affect All Instances Of A Prefab

$
0
0
Hey guys, thanks for taking a look at my question. Basically, I am using the gameObject.Find("Object").GetComponent(Script).enabled=false thing. I want to disable a script on all instances of a prefab, but this only affects the main object, not everything. gameObject.FindWithTag doesn't work either. To sum up, I would like to find a way to disable a component, or this case a script, on all instances of a prefab. Thank you :D.

Viewing all articles
Browse latest Browse all 171066

Trending Articles