Game Development Reference
In-Depth Information
like the sky (and this sky shows up in reflections if you have Unity Pro), but
don't really do anything to the scene.
Still, even though it's a bit unintuitive to track down where a skybox is, it really
does help take a scene out of that flat look that the solid blue background
gives it. In the next few steps we will set up a skybox to see how it works and
what it does for the scene. However, this is an exploration of the tool—and in
steps soon after that we will eliminate the skybox to give the scene a much
more ambient effect.
Step 8: Import Unity's skybox package. Unity, as part of the standard
packages that it ships, includes some fairly nice skyboxes. While
custom skyboxes can be created, for now choose Assets>Import
Package>Skyboxes. Again, after importing, the Project panel will show a
new folder called Skyboxes within the Standard Assets folder.
Step 9: Examine any of the skyboxes. In the Project panel, expand the
Standard Packages folder, and then expand the Skyboxes folder. Notice
that the skyboxes contained there are not prefabs or GameObjects
at all. That circle icon represents a material. If any of these materials
are selected, the Inspector will show that the skybox material actually
consists of six images for each side of the box ( Figure 6.4 ).
Figure 6.4 Skyboxes are constructed
with materials made of six texture
images. No GameObjects are involved.
Step 10: Apply a skybox material in the Render Settings. Select
Edit>Render Settings. The render settings will appear in the Inspector
panel. There, notice the Skybox Material area. To apply a material here,
either (1) drag a skybox material from the Project panel into the area
where it says None (Material) or (2) click the little target icon at the far
right of the Skybox Material line and pick a skybox material from the
displayed swatches.
Search WWH ::




Custom Search