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
0
Question by Saint34x · Sep 12, 2013 at 09:39 PM · meshprefablighting

Why did adding these meshes to Prefab cause them to no longer be effected by lighting?

i'm not sure if this is an issues with the new update i downloaded today but i've never had this happen to me before. im working on making a hallway prefab section. everything is going great and rendering great until i add the objects to a prefab. the second i add it to a prefab 3/4 of the meshes turn black and no longer accept lighting. i have pictures below. nothing is changed between these two pictures other than adding object to Prefab. Why is this happening?

alt text

alt text

screen shot 2013-09-12 at 4.23.45 pm.jpg (198.2 kB)
screen shot 2013-09-12 at 4.23.18 pm.jpg (203.3 kB)
Comment
Add comment · Show 2
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 Meltdown · Sep 13, 2013 at 05:12 AM 0
Share

Is the light a part of the prefab and are you doing any instantiating of the prefab at runtime? If so are you modifying the scale at all?

avatar image Saint34x · Sep 13, 2013 at 04:24 PM 0
Share

the light is not a part of the prefab. just the four walls. i havent modified the scale at all. this is all i've done. drag and dropped the walls into the scene, and set their origins to 0,0,0 then i vert snapped the walls to their correct positions. after that i grouped them together (i did this two ways to see if it would fix my problem i parented them to an empty, and i parented them to the floor.) after that i created an empty prefab, named it Hallway_Windowed dragged the group from the hierarchy onto the empty prefab the second i let of the mouse and its added to was-blank-prefab the 3 walls go black.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ZeroSumGames · Sep 13, 2013 at 05:43 PM

Can you check the layers and make sure they are not being culled? If they are prefabs you may have changed their layer at some point

Comment
Add comment · Show 1 · 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
avatar image Saint34x · Sep 13, 2013 at 08:23 PM 0
Share

hey ZeroSumGames, thanks for the reply. the layers are all still set to default. i haven't changed anything on the meshes yet. that being said its completely possible i didnt change something i should have but i've built prefabs ike this before and never had any trouble

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

17 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

Related Questions

Houses are dark 1 Answer

How do I include baked lighting in my prefabs? 5 Answers

MODEL TURNS BLACK AFTER APPLYING TEXTURE PLS HELP 3 Answers

Seams between Primitive Cubes 1 Answer

Light shining through mesh 1 Answer


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