Editor Material no longer configurable

Last night while tweaking the textures in a material, all the materials in my project stopped being configurable. I could still change the shader and see the preview but the option to change the texture(s) disappeared. Every material in my entire project was like this. I could see the existing texture still displayed in the preview, but could not longer change out that texture. The UI texture selection control was literally missing. Drag and drop of textures didn’t work either.

If I created a new material, I would see the same result. It created a blank material and allowed me to select the shader, but there was still no UI element to attach a texture.

Trying to fix this, I closed and re-opened Unity twice and rebooted, all with no success.

After struggling with this for an hour, I ended up creating a new project for testing. Here, materials worked properly and were fully configurable again, so I determined this was the result of screwy Library data.

I was able to solve the problem in the original project by deleting the Library folder, but this had the obvious ramification of wiping out all my hierarchy and prefab connections. Reconnecting everything manually was not fun, and is definitely not the optimal solution.

Has anyone encountered this issue before? Does anyone know of a work around to this issue? Going forward, I’ll make a point of backing-up my project more frequently, but what I’m hoping for is some smaller scale work around to prevent loss of work should this happen again.

I’m running Unity on a Windows Vista box. I can get in to more detail of my system configuration later if necessary.

I have seen this happen before. In fact, had it happen to me. Uhm… the “work around” is not going to make you too pleased, though, considering you already deleted your Library folder.

Simply put, if you look at a Material in the inspector window. See that light gray bar at the top where it shows a small sphere with your texture applied, the name of the material, and which shader you have selected?

Well, if you click on that bar (Not the shader drop-down part of that bar, but around the shader drop-down) it will hide everything else in the inspector except for that bar. It does this for every single material you have.

The way to fix it? Just click on that bar, again. It un-hides the rest of the inspector window. Not really a bug. Just a quirk of the Inspector window that, if you do not know about, can definitely throw you a curve ball.

At least, I believe this was the issue you encountered.

Wow. Thanks. I just played with it in Unity and I think you’re right - that fits exactly what happened to me.

Fortunately, I’m able to laugh at this experience this morning, though I wasn’t laughing last night. Also, I’m VERY happy that this isn’t a Unity stability issue.

That said, it sure would be nice to have some sort of indication that the inspector controls were “minimized.”

Lesson learned. I got pwned by Unity.

No worries, jmcclure. You are not alone in your pwning by Unity. The only reason I was familiar with what happened is because it happened to me, as well. I spent about an hour trying to figure out what caused the problem.

I think, in the end, I only figured it out because I started anger-clicking the inspector window and just happened to hit the right spot.

When you look back on it, you get the feeling it should have been obvious. Of course it minimizes it when you click on that bar.

When you are not expecting it, though, and it happens out of the blue… not so much.

It needs a small arrow icon to indicate that it works the same way as a foldout. Maybe file it as a usability bug, I’ve seen more than a couple of people hit by this too :?

wow - thanks for the thread - This got me as well - I agree that a foldout icon would’ve saved me some stress.