Textures turn Pink

HI my problem is that all my textures have turned bright pink, this was after a computer crash. As I see it I have a number of options:

  1. Re assign all the textures by hand…this is difficult as its not that obvious where they all go, this would take a couple of days.
  2. Re import all the 3d elements and re assemble, this would again take a couple of days.
  3. System Restore to before yesterdays crash, I do not have a regular backup of my files so presumably only the recently installed programs and drivers would be uninstalled? So presumably this would not solve my problem?

Magenta generally means there is a problem with the shader assigned to a material. Check whether your shaders are still assigned/not corrupted.

Thanks Tanoshimi, yes the material does exist in the project, but I have maybe a hundred different materials, it would probably be quicker to start the project again.

i have the problem please answer me in details how to fix this. [84056-capture.png|84056]

6 Answers

6

I did fix it just by reimporting all assetes: Assets>Reimport All.

This is a common question. It normally has to do with a problem with the Shader applied to the object. Remove and re-add the shader.
For additional info, check the following (existing) answer:
Everything Became Pink

Thanks for the reply, will look at now.

In this latest screenshot, there is no material so it explains the pink material Unity uses to show the problem. If it's after a computer crash: maybe your cached data are corrupted: make a backup of your entire project folder just in case (a copy somewhere else on your drive) and then delete the "Library" folder. Re-launch Unity: it will re-export and rebuild everything. It should help relinking objects and materials.

Thanks dns for that answer, so I backed up the project and deleted the library folder, it took a while to reopen the Unity file, which looked promising, but in the end only a couple of objects were fixed (see screengrab attached)[31577-still_pink.jpg|31577]. Maybe I will have to revert to re-assembling the whole game.

Did you actually try assigning a new material? It still says missing in your Renderer box.

How did you create and export the model? With what program, using what format? Next to the mesh, didn't the program also create a material?

Magenta can mean two things AFAIK, either the shader is broken or you have an unassigned material; The latter is the case here.

Your renderers simply do not have a material assigned. This happens to me sometimes in my projects, not sure why… Someone else commits the scene, and when I update, materials go missing… The way to fix it, is to select your mesh, uncheck “Import Materials”, apply and then re-check “Import materials” and re-apply. Your meshes will have their correct materials assigned once again. Commit the scene and you’ll never see the problem again.

Thanks Jessespike, tried that (see screengrab), didnt work unfortunately. I can see now how in theory it really should work, you ask mesh to break all current connections with the materials,apply, then ask it to look recursively in all the folders for the base texture named material, and apply. Tried this with all the objects, none worked. I even then tried it on the copy of the project I made a couple of days ago(which also has this texture problem), still no success. Thanks for all your responses so far, any other ideas?[31694-problem.jpg|31694]

Does the material exist in the project? Then just drag it onto the model in the scene view.

In the random case that somebody else comes a long this and gets the weird issue I did, here.

I came across pink textures as well, it was a shader issue but not this one. I imported Taichi (free), which worked fine, once I imported Aio (by the same author) all things went to hell. My terrain more noticeably was pink, then white. After hours of frustration and I accidentally came across the solution.

Never realized the connection at first! However I randomly deleted Aio’s shaders (because I noticed there were doubles of Toon/Cutoff) and then my terrain’s textures appeared! Then I noticed most of Aio’s materials were corrupted.

So there you go, could be duplicate shaders.

I had a similar issue with a very simple 2D game that I transferred across to my Macbook to test on a handset.

It turns out that the materials on my sprites just disappeared!

Re-allocated the sprite material and all good again.

For anyone who finds themselves here like myself.

To fix your pink sprites, click on the sprite & search for the default “lit” material after clicking the eye.

This will make them black unless you already have lights.