- Home /
Active GameObjects
Hi all,
I wanna ask about Active GameObjects. I wanted to use the function FindGameObjectsWithTag and i found that it "Returns a list of active GameObjects tagged tag".
So by active gameobjects, does it mean the objects in the scene only ? and what if i loaded another scene, what happens to the objects in the former one, are they still active ?
Thanks,
Samer Samy
Answer by Kacer · Aug 22, 2011 at 12:36 PM
To my knowledge, then active gameobjects are gameobjects that are in the current scene.
Answer by Anxo · Oct 31, 2011 at 08:17 PM
Kacer is correct, they have to be in the scene. But they are only active if the little check mark is checked in the properties. So an object can be in the scene but might not be active. you can switch this check mark on and off in the editor or you can type gameObject.active = false/true; via script.