x


Lighting layers error

I have recently created a build for the latest version of my game however unity has not allowed me to test the game since the build. It keep s coming up with this error:

Too many layers used to exclude objects from lighting. Up to 4 layers can be used to exclude lights, while your lights use 31: 'TransparentFX' 'Ignore Raycast' 'Unnamed 3' 'Water' 'Unnamed 5' 'Unnamed 6' 'Unnamed 7' 'Unnamed 8' 'Unnamed 9' 'Unnamed 10' 'Unnamed 11' 'Unnamed 12' 'Unnamed 13' 'Unnamed 14' 'Unnamed 15' 'Unnamed 16' 'Unnamed 17' 'Unnamed 18' 'Unnamed 19' 'Unnamed 20' 'Unnamed 21' 'Unnamed 22' 'Unnamed 23' 'Unnamed 24' 'Unnamed 25' 'Unnamed 26' 'Unnamed 27' 'Unnamed 28' 'Unnamed 29' 'Unnamed 30' 'Unnamed 31'

Is there any possible way to fix this? I understand what it is saying however I do not know how to fix it.


The solution should be something like to delete the unwanted lighting exclusion layers. So my real question is how can I delete these layers?

more ▼

asked Jul 03, 2013 at 03:34 PM

Daphoeno gravatar image

Daphoeno
241 29 26 28

Check your lights and see what layers they are excluding. Your problem is there, not in deleting the layers themselves.

Jul 03, 2013 at 04:43 PM amphoterik

What am I looking for in my light's layers?

Jul 03, 2013 at 04:46 PM Daphoeno

There aren't any abnormalities in the lights' culling layers from what I can see...

Jul 03, 2013 at 04:49 PM Daphoeno

I have this same problem. I have disconnected the layers many times, but the Editor seems to keep re-adding them to the lights when I re-load the scene.

Also, the empty layers are null - not connected to any other Game Objects, AFAIK

Jul 04, 2013 at 06:46 PM alienorbit

This is a similar problem however my lights don't keep adding the layers there are just more layers that are not in the culling masks list that are added by default and there is no way to remove them. I wondered if there was something in unity's options that might allow me to delete unwanted layers...

Jul 04, 2013 at 07:04 PM Daphoeno
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3336
x1064
x773
x274
x254

asked: Jul 03, 2013 at 03:34 PM

Seen: 1115 times

Last Updated: Jul 09, 2013 at 06:25 PM