I can not I find an object hidden

Hi everyone

I have a problem

When an object will hide, by the code

gmaeObject.Find ("hideObject")

I can not find it!?

To still be able to use the object you can

  • initially set the object to active. find the object in Awake() and keep a reference. then set the object to inactive (probably in Start()).
  • disable the renderer, not the object
  • instead of Find(), create a public var and drag the object in the inspector onto that script
  • if you know the relative location of the object to your script in the hierarchy, you can reach the object via the hierarchy (transform.parent or the children of the transform)

What do you mean by "hideObject" . if you mean disabling it, then you can not find it. But if you disable the renderer, you can simply find it.