Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Lights in WebGL build not working

Discussion in 'WebGL' started by jasperholl, Sep 29, 2016.

  1. jasperholl

    jasperholl

    Joined:
    Dec 17, 2015
    Posts:
    8
    Hi, I made a Unity game with a few spot lights and point lights, but when I make a WebGL build, all the lights are not working. I changed the memory allocation to 512 (since 256 was not working) and the quality is set to 'fantastic'. Does anyone know what could cause this problem? Thanks.
     

    Attached Files:

  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    could you provide any more info ? (unity version, rendering path, OS, Browser, etc..)
     
  3. jasperholl

    jasperholl

    Joined:
    Dec 17, 2015
    Posts:
    8
    I'm using Unity 5.4.1f1 (64bit) on Windows 10 (64 bit). The problem occurs both on Chrome and Firefox. I use forward rendering. I attached a screenshot of my player settings.
     

    Attached Files:

  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Could you submit a bug report with your project ?
     
  5. jasperholl

    jasperholl

    Joined:
    Dec 17, 2015
    Posts:
    8
    Ok, I just sent a bug report. Thanks
     
    Last edited: Sep 30, 2016
  6. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Pixel Light Count is zero. That is your problem :)
     

    Attached Files:

  7. jasperholl

    jasperholl

    Joined:
    Dec 17, 2015
    Posts:
    8
    But in my build I had the settings set on 'fantastic', with pixel light count to 4.
     
  8. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    You have to set fantastic to default for WebGL for it to be used in the build since there is no selector like the standalone player has. The default default is Fastest for WebGL.
     
  9. SanghoonLim

    SanghoonLim

    Joined:
    May 17, 2022
    Posts:
    14
    How did you do that?
    I cna't find this option.
     
    deatheragenator likes this.