Search Unity

Question skybox apperaing in webgl build, but we don't have it in the game

Discussion in 'Web' started by bw2635, Dec 29, 2023.

  1. bw2635

    bw2635

    Joined:
    Nov 28, 2023
    Posts:
    4
    hey everyone,

    when build and run in unity webgl, the skybox appears in the game, but we don't have it when play the game in the unity? does someone know how to solve this?

    thanks a lot!!

    webgl build:

    Screenshot 2023-12-29 at 09.12.57.png game in unity: Screenshot 2023-12-29 at 09.57.14.png
     

    Attached Files:

  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,710
    well the scene view shows you do have it.. You could of course, just get rid of it entirely then it cant show
     
  3. bw2635

    bw2635

    Joined:
    Nov 28, 2023
    Posts:
    4
    Hi ! Thanks for your reply! Yes we have the skybox in the scene, but in the game mode, there is no skybox showing..
     
  4. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,710
    well whatever camera settings you set are clearly not working, so remove the sky box entirely and it cant show and will be the same
     
  5. bw2635

    bw2635

    Joined:
    Nov 28, 2023
    Posts:
    4
    remove the skybox from lighting -- > environment ?
     
  6. bw2635

    bw2635

    Joined:
    Nov 28, 2023
    Posts:
    4
    i tried but the whole environment will be darken
     
  7. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,710
    So add a directional light? its not that different to what a skybox does after all