Adding skybox in Unity-5.3 for cardboard VR?
I have imported the google cardboards unitypackage and it is working fine. Now I want to attach a skybox to the CardboardMain gameObject but I am stuck. The unity skybox component or the skybox mesh cardboard script, neither of them are doing the work. Also I couldn't not find any post regarding so...
If someone could help me out!!!
Answer by ianmacg · Mar 11, 2016 at 08:05 PM
Per http://answers.unity3d.com/questions/1131080/blue-scene-screen-with-cardboard-sdk.html it seems the answer is:
CardboardMain -> Head -> Main Camera -> Inspector: Camera -> Clear Flags : Skybox
Answer by BrennanH · Feb 28, 2016 at 05:15 PM
There are two ways I have found.
1 - Easiest. Drag your skybox material into your scene and it replaced the default Unity skybox.
2 - Add the skybox to each Main Camera Left, Main Camera Right. Then edit the CardboardEye.cs Script. remove "Destroy(customSkybox);" at line 279
Dragging the skybox directly into the scene though add the skybox in the scene view but doesn't effect the game view... It still shows the background color.
I have added the skybox component to each camera object under the main camera and commented out the Destroy method in the CardboardEye script, but that also doesn't seem to work.
There are 3 ways, the first as you mention is the scene skybox under Windows -> Lighting, the second is to add a skybox component to the main camera (as ianmacg mentions, the clear flag must be changed), and the third is to add a skybox component on the left/right (which can be different) along with the clear flag fix and the c# fix.
Your answer
Follow this Question
Related Questions
How do you get the X and Z position of the map, which is in the center of the screen? 1 Answer
Water camera effects 0 Answers
Camera FX to fade out back to normal 0 Answers
Make camera collide 2 Answers