Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Daphoeno · Jul 03, 2013 at 03:34 PM · errorbuildlightingbuild-errorlayers

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?

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image amphoterik · Jul 03, 2013 at 04:43 PM 0
Share

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

avatar image Daphoeno · Jul 03, 2013 at 04:46 PM 0
Share

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

avatar image Daphoeno · Jul 03, 2013 at 04:49 PM 0
Share

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

avatar image alienorbit · Jul 04, 2013 at 06:46 PM 1
Share

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, AFAI$$anonymous$$

avatar image Daphoeno · Jul 04, 2013 at 07:04 PM 0
Share

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...

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by jakejolli · Nov 30, 2016 at 11:24 AM

If you have more than 4 layers **Un**Checked in a light's culling mask, you're going to get this warning.

If you need to exclude more than 4 layers from a light, you're going to have to change from deferred lighting.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

WindowsPlayer Error when building project 1 Answer

LOTS of build errros 0 Answers

"Error building Player" WebGL build error 2 Answers

WebGL Build Error: IL2CPP error 0 Answers

Gradle build faild. see... error "in unity 2020.1.4f1!!!" 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges