Recover 3d world after changing guiTexture.texture


I want to show and hide a GUITexture when i press a button. And when the GUITexture is ot visible I want to see my 3d world. But the problem is that when I apply the texture, then, when I take it off I can only see the blue screen, no more 3d world.

How can I get my 3rd world after changing the texture? any suggestion?

The way I change the texture is the following:

    guiTexture.texture = new Texture2D(4, 4, TextureFormat.RGB24, false);
    transform.position =;
    transform.localScale =;
    guiTexture.pixelInset = Rect (0, 0, Screen.width, Screen.height);

Thanks in advance.

Sounds like your camera is moving for some reason. Also