- Microsoft HoloLens Developer's Guide
- Dennis Vroegop
- 177字
- 2025-04-04 18:50:03
Changing the background color
Another thing we need to change is the color of the virtual world. We do this by changing Clear flags. This is the color that is being used when no pixels need to be drawn for our scene. In a game, it would be nice to have a default background such as the one we see now, but in HoloLens, we want the default to be transparent and thus black.
Change Clear Flags from Skybox to Solid color and change the background color underneath this to black (RGB--0,0,0).
Every now and then, Unity might show Skybox again when we select other objects, but this is something we can ignore.
The camera itself has a "MainCamera" tag. This means that the SDK will take this camera and use it as the point of view. You can have multiple cameras in a scene, but only one camera can be the main camera. By default, this tag is already assigned, so we do not need to change anything here.
