Search Unity

Spot lighting not working

Discussion in 'VR' started by nturley, Jun 7, 2016.

  1. nturley

    nturley

    Joined:
    Oct 11, 2013
    Posts:
    7
    Hi All,

    I'm pretty new to Unity and basically learning it as I go with a HoloLens project. One issue I am having that I'm not sure how to solve is that spot lighting does not seem to be working when deployed.

    It works in the Game editor, but not in HoloLens. I took some screenshots to show:
    unityLighting.png
    This is the lighting in the editor. And this is what I see when I deploy to HoloLens

    holoLensLighting.jpg

    Any idea why there is such a difference??I made sure I took out all the area lights, etc...

    Thanks for any ideas
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Hello,

    I can see my spotlight in a simple project on a plane, could you provide some more details please?

    How far is the light from the surface of the floor plane?
    How are you building the project?
    What are the settings of the spot light set to?

    Thank you,
    Wesley
     
  3. shouchard

    shouchard

    Unity Technologies

    Joined:
    Mar 29, 2016
    Posts:
    10
    You might check that your pixel light count isn't set to 0 but I doubt this is the issue since it works in the editor. The pixel light count is found under Edit -> Project Settings -> Quality in the inspector and the first entry under "Rendering".

    Please file a bug if you can't get it resolved.
     
  4. asish108

    asish108

    Joined:
    Mar 16, 2019
    Posts:
    2
    I am using unity 2018.2.2 and spotlight and it works in editor but does not show when build it. Any suggestions?
     
  5. GreenieBoiGames

    GreenieBoiGames

    Joined:
    Mar 27, 2022
    Posts:
    1
    I have the same problem, I have no idea how to fix it