- Home /
Screen Goes Black When Looking at Certain Objects
Hey everyone! I'm having a problem where when I look at certain objects in my scene, my screen goes completely black. It only happens when the lighting has already been baked.
Here's a video walking through the issue in much greater detail: https://www.youtube.com/watch?v=J5rJadxXDQA
Thanks for the help!
-Brad
Answer by SheldorinoLIVE · Jul 12, 2021 at 07:56 PM
Okay, I figured out how to fix it but idk why this worked:
The objects that were causing the screen to go back were prefabs. I just remade them but this time did NOT turn them into prefabs. In other words, I used the same models and same materials but just didn't export as an FBX prefab.
Kind of annoying, but at least it's fixed.
UPDATE! I was wrong. It has something to do with the props being ticked as static. When they're ticked as static and I baked, they still make the screen black.
FINAL UPDATE AND SOLUTION:
I followed this conversation of several people having similar issues using HDRP (which is what I'm using) and I solved it by ticking Stop NaNs in the main camera.
I'm glad you found a solution because I was about to say it was something wrong with your code. I thought that your light would deactivate every time you clicked something.
Answer by Zottic · Jul 12, 2021 at 07:39 PM
Try turning off certain post-processing effects like post-exposure and bloom to see if it helps.