Objects that are not Active cannot be found using Go.Find

Hi

I have a large scene so deselect the inspectors active state on several objects to off while working on different levels, using script I tried to find these deactivated objects and set the active state to true before the game starts but it doesn’t find them at all and throws an exception error.

Surly the object should still be found as it hasn’t been destroyed?

Is this correct behaviour?

Unity 3 Beta 5

No, only if it’s active.

–Eric

…and here I was hoping that behaviour would have changed in Unity 3, or at least there would be some way to find objects that are initially inactive :-/

i havent tried this, but it may work, but what about nesting the initially inactive objects inside of a root object and then iterate through the childs objects of that root object??

oh my, how many times i used the word object ahahahah :lol: