- Home /
What am I doing wrong with my Skyboxes? So many glitches...
I'm sorry if there is already a thread for this, but of there is, I couldent find it. I am a Noob as I just started using unity yesterday. When I set a skybox, I have to custom size it to the map. I have watched countless YouTube tutorial videos and in them they just click one button and the sky box set perfectly. Also, sometimes the skybox seems to be sideways and sometimes in the case of using the texture such as dawn dusk, there are two suns. Everything seems stretched as well. Another glitch is where the texture will move and fade in and out when moving the mouse. I don't know how to describe it exactly, but here are a few screenshots. If you need more, let me know. I have tried setting the skybox to the FP camera and I get the same results.
Answer by Aerozo · Jun 14, 2014 at 09:27 PM
You don't need any custom geometry to add a standard Skybox, just do the following:
Go to Edit -> Render Settings
Click on the "Skyboxes" folder inside the "Standard Assets" folder
Drag one of the materials from there into the "Skybox Material" in the inspector
Tada! Skybox!
Answer by Gcs_deV · Jun 14, 2014 at 09:38 PM
Hi. I'm something of a noob as well so I'm not going to say that the way you're doing the skybox is "wrong", but I've never seen it done the way you're trying to do it. The skybox shouldn't be an actual object in the scene, so go ahead and delete it. Instead you need to create a Skybox Material (create a new material and then, with the new material selected, choose Skybox shader in the shader drop-down menu in the properties panel). After that you'll see the six texture slots for your skybox textures, so go ahead and drag them into their corresponding slots. Finally, under Edit -> Render settings, you'll see a slot for a skybox material, drag your new material onto this slot and your skybox should be instantly visible in the editor.