Unity Play Mode

Bahadır ÇAKAR 21 Reputation points
2022-07-07T08:00:27.637+00:00

Hi there,

I have a question for Unity Play mode on HL2. As you can see on the picture, how can I disabled sky blue background colour?

218532-1d84d90c-6cda-46c4-8fc5-a7fe8b1eb568.png

HoloLens Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Seth DU - MSFT 541 Reputation points
    2022-07-07T10:18:45.013+00:00

    Hello, welcome to Microsoft Q&A,

    Sky background is determined by the Main Camera of your Unity Project. According to Camera setup in Unity, please follow the steps below.

    1. Select the Main Camera in the Hierarchy panel
    2. In the Inspector panel, find the Camera component and change the Clear Flags dropdown from Skybox to Solid Color
    3. Select the Background color picker and change the RGBA values to (0, 0, 0, 0)
    4. If setting this from code, you can use Unity's Color.clear

    I also noticed your Unity version is 2018.4. According to Choosing a Unity version and XR plugin --

    Unity 2018.4 LTS has reached the end of Unity's two-year Long-Term Support window and is no longer receiving updates from Unity, although your projects will continue to run.
    If you have a Unity 2018 project, you should consider planning for a migration forward to Unity 2020.3 LTS and the Mixed Reality OpenXR plugin.

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.