- Home /
Unity hates more than 2 spotlights
I have 2 worklights, each covering a lot of space. And a flashlight. When I enable the flashlight. It doesn't work properly, it's getting annoying as it's happened before. Can someone please help me?
Answer by robertbu · Oct 21, 2014 at 04:32 PM
Try upping the pixel light count:
Edit > Project Settings > Quality
Perfect, thank you. Just a quick question. Is there a way of changing the quality in the scripts? I might make a menu where you can change quality.
Answer by KingMatthew · Oct 21, 2014 at 04:36 PM
I change the Render Mode to "important" In the light. It makes it so I can have a lot of lights working in 1 place.
Answer by MrSoad · Oct 21, 2014 at 07:41 PM
You are using Unity free. It does not support more than two lights at a time. So when you active you flashlight you get a problem as you now have three lights.
Look into "baking" your scene where ever possible and use your active lights where they are needed the most.
I do not believe that is the case. In unity free you can have as many lights as you want. When close, 3 lights can make strange effects on "auto" Render mode. But in important render mode, it works fine.
I'v had many lights with Unity free, but it can be hard for them to been seen with more. Do what they say, or maybe fiddle with the intensity for a quicker fix.
Setting priority says which order the lights will work in so you are sort of right(but you still only get two actually switched on per object, the priority switches off one of the lights in the order you have set on that object when more than two affect it). However if you wanted a room with 3 candle lights in it, all lighting at the same time evenly then you will have a problem. This is one of the things I wanted my pro licence for the most.
There is another sort of work around that I have done. Use layers, the light limit is per object, you can set two lights up to light some of your layers, and two more to light objects belonging to a different layer.