Meshes darken at runtime

For some reason, when I press play, this GO goes completely black. Can anyone see what the issue might be? None of my other GO’s have this problem and it looks great outside of Play mode…


I know this might be really obvious to you but since I don’t know what your setup is like have you tried tweaking the lighting? That includes the stuff in the edit tab as well as the actual lights themselves it may be just that there’s not enough light hitting the object or there’s something off with your render settings.

That’s the only thing I could think of right now without more information, or alternatively the materials you’ve picked don’t react to light and need to be changed to blinn or specular. It’s worth double checking everything because sometimes that can be all it is.

I appreciate your reply, but yes I’ve tried changing materials, shaders, cranking up the lighting, scrapping the mesh renderer altogether and adding a new one. This is the only model that has this problem, even when I add the same material from a nearby object which shows up just fine. Corrupted meshes perhaps? Reimporting the fbx fixes nothing. So weird. It just goes completely black at runtime…

That is very weird, the only other thing I could think of maybe is try importing different filetypes and seeing what works, I think some shader types used in modelling software do trigger that sort of behaviour but I’m afraid that’s all I can come up with.

Ok, so, finally got to messing with this some more… and what I said before about other models not having this problem is not true. It all seems to be a problem with the metallic setting in this scene only (!!!). I’ve added a simple cube to the scene with a brand new material with the standard shader and did the same thing in another project. In my main project turning up the metallic setting blackens to the object completely during play mode (it looks fine otherwise) whereas in my second project it looks the same in and out of play mode.

Aaand I just barely made a new scene in my main project with only a cube and a camera and it works fine! But back in my main scene it is still turning black… so it has some thing to do with the scene somehow… I’ve even disabled everything else in the scene besides a new nearby pointlight and camera and the cube still shows black.

Is there anything that can cause metallic setting to show up completely black? Could me standard shader be corrupt somehow. This is maddening. I’ve gone into player settings and the only change that makes a difference is Legacy Vertex lit and then it becomes opaque but at least looks the right color.

But, just did a test build and it seems to display just fine playing on the device… but still, quite annoying. Any setting that would turn this off?

Unfortunately off the top of my head I really can’t think of anything, but it’s obvious that you must have flicked an option you didn’t mean to before which has happened to me. What you’ll just have to do is make a note next time of what you did if you can make the same thing happen again, this is what debugging is all about, even with the simple stuff.

As I said, the only thing I can think of with those kind of problems are that it is usually to do with lighting and texturing because that’s the only times I’ve seen that kind of weirdness happen.

Maybe you could try setting up the model all over again and just mess with all the options until it happens? That might be worth trying, I wouldn’t worry about it too much if it works fine now you’ve done a whole new scene.