Hi
Sorry, this must be stupid, but I don’t know how to google it.
I inserted a GUI Layer and a GUI Texture and a GUI Skin (testing).
I deleted the Skin and now when I start my game everything is blue. So I’m guessing my GUI Layer is still active, but doesnt have anything on it. Changing the main camera’s BG color doesn’t change a thing. Deleting GUI Layer from the cam didn’t do anything either.
I have searched up and down for GUI stuff that I haven’t deleted yet, but I can’t find where I put it. Search for gui in the assets doesn’t show anything.
When you chose GameObject → create other → GUI Texture (or Layer) does it automatically get attached to the active object? Or is there a standard location where say GUI will be stored?
So in short:
Created a GUI, want to delete it, but can’t find it
Thanks in advance
My advice to you?
Don’t even bother with Unity’s built in GUI. Rather look at something like NGUI, it will just save you heaps of headaches.
Good luck 
You’re confusing two different things. If you use a GUISkin, then you are using OnGUI code, which is purely code-based and does not use GameObjects, GUILayer components, or anything else. If you’re using a GUILayer component and a GUITexture object, then you can’t use a GUISkin. Those are two different and unrelated GUI systems.
It makes a new game object. A GUILayer is something different, namely a component that you attach to a camera so it will render GUIText and GUITexture objects. Again, not related to OnGUI code.
–Eric
I did switch to GUI code now, I am more confident with that, still the issue remains: my camera is blue when I start the game. By blue I mean all I see is blue.
Your seeing the camera’s background render colour (light blue by default).
Have you;
- Written GUI code within OnGUI in your script?
- Attach script to gameobject in scene (the camera object will do)
if both yes, then post a snippit of your code and we’ll see where we can correct you.
Additional this isn’t really a gossip topic but a help one, you should of posted either in GUI discussion or scripting discussion. I’m sure a helpful mod will move this for you though.
Thanks, but when i change the camera bg to red, screen is still blue.
as fasr as I remember I did not have OnGUI code in this scene, I tried it in another scene, worked fine.
I used the standard construction worker camera.
But I deleted everything camera, controller etc, made a new camera, BG red, still blue.
Sorry, new to the forum, thought it would be the appropriate place
OK, it was stupid:
Camera was set to skybox, but no Skybox was selected, changed that to solid color and now my scene is back. Yay.
Sorry for the confusion and thanks for your help.
Thats fine, as long as you’ve got what you need. If your doing a PC title, i recommend trying the OnGUI Scripting (plenty of tutorials to Google).
As for a full GUI solution, nGUI is nice, doesn’t suit all titles but most. But you have to pay, so if you’re just experimenting, OnGUI will suffice for now.