Can't edit materials anymore

I did something and now none of the materials in my project can be edited anymore. All I can change in the material inspector is the shader, below that there's just an empty grey area. I have the problem both if I view the material itself in the inspector and if I view a gameobject with that material attached (which brings up a small popup at the bottom of the inspector).

The problem persists for every shader and every material, even the ones in the Standard Assets package. Materials created before the problem do keep the settings I gave them (textures, colors etc.), I just can't edit them anymore. The problem isn't restricted to one scene but to the project: if I switch scenes it persists, but if I switch to a different (older or newer, doesn't matter) project I can suddenly edit materials. This doesn't provide me with a workaround though, as when I import a material from a different project (after first importing the texture assets) it sets its texture settings to the default texture (other settings, like shader, color and shininess, remain though).

I didn't immediately notice the problem, but this is some stuff I did that might have caused it:

I create a material at runtime using this code:

Custom.playerColors <em>= new Material("Shader \"Player Color " + i + "\" {SubShader{Pass{Color(" + playerColors<em>.r + " , " + playerColors<em>.g + " , " + playerColors_.b + " , " + playerColors*.a + ")}}}");*_</em></em></em>
<em><em><em>_*```*_</em></em></em>
<em><em><em>_*<p>I imported some (projector) shaders from a different project (where materials do work) and I wrote a new one, which also uses the projector matrix and has a fragment program embedded in it (incidentally, it doesn't work yet). Here's the code:</p>*_</em></em></em>
 <em><em><em>_*<blockquote>*_</em></em></em>
 <em><em><em>_*<p>Shader "Projector/Fog of War" {*_</em></em></em> 
 
 <em><em><em><em>*Properties {   _Transparency*</em></em></em></em>
 <em><em><em>_*("Transparency", Float) = 0.5*_</em></em></em> 
 
 <em><em><em><em>*_FogTex ("Cookie", 2D) = "" { TexGen ObjectLinear }*</em></em></em></em>
 <em><em><em><em>*_FalloffTex ("FallOff", 2D) = "" { TexGen ObjectLinear }   }*</em></em></em></em> 
 
 <em><em><em>_*Subshader {*_</em></em></em>
 <em><em><em>_*Pass {*_</em></em></em>
 <em><em><em>_*ZWrite off*_</em></em></em>
 <em><em><em><em>*Fog { Color (1, 1, 1) }       Color (1 , 1 , 1 , [_Transparency])*</em></em></em></em>
 <em><em><em>_*ColorMask RGB         Offset -1, -1*_</em></em></em>
 <em><em><em>_*Blend DstColor OneMinusSrcAlpha</p>*_</em></em></em>
 
 <em><em><em>_*</p>*_</em></em></em>
<em><em><em>_*```*_</em></em></em>
 <em><em><em>_*CGPROGRAM // Upgrade NOTE: excluded shader from OpenGL ES 2.0*_</em></em></em>
 
<em><em><em>_*```*_</em></em></em>
 
 <em><em><em>_*<p>because it does not contain a surface*_</em></em></em>
 <em><em><em>_*program or both vertex and fragment*_</em></em></em>
 <em><em><em>_*programs.</p>*_</em></em></em>
 
 <em><em><em><em>*<h1>pragma exclude_renderers gles</h1>*</em></em></em></em>
 
 
<em><em><em>_*```*_</em></em></em>
 <em><em><em>_*#pragma fragment DrawTexture*_</em></em></em>
 
 <em><em><em><em>*sampler2D _FogTex;*</em></em></em></em>
 <em><em><em><em>*float4x4 _Projector;      float _Transparency;*</em></em></em></em>
 
 <em><em><em>_*struct outputWithVariable         {*_</em></em></em>
 <em><em><em>_*float4 color : COLOR;*_</em></em></em>
 <em><em><em>_*float partOfTransp;       };*_</em></em></em>
 
 <em><em><em>_*outputWithVariable DrawTexture (float4 color : COLOR, float4*_</em></em></em>
 
<em><em><em>_*```*_</em></em></em>
 
 <em><em><em>_*<p>textureCoord : TEXCOORD0)*_</em></em></em>
 <em><em><em>_*{*_</em></em></em>
 <em><em><em><em>*float3 projectedTextureCoord = mul (_Projector, textureCoord).xyz;*</em></em></em></em>
 <em><em><em>_*projectedTextureCoord.z = - projectedTextureCoord.z;*_</em></em></em>
 <em><em><em><em>*float4 fogCoordinate = tex2Dproj (_FogTex,*</em></em></em></em>
 <em><em><em>_*projectedTextureCoord);*_</em></em></em>
 <em><em><em>_*fogCoordinate[3] = 1 - fogCoordinate[3];*_</em></em></em>
 <em><em><em>_*outputWithVariable output;*_</em></em></em>
 <em><em><em><em><em>output.color = 2.0 * fogCoordinate * _Transparency *</em></em></em></em></em>
 <em><em><em>_*color;*_</em></em></em> 
 
 <em><em><em>_*return output;*_</em></em></em>
 <em><em><em>_*}</p>*_</em></em></em>
 
 <em><em><em>_*</p>*_</em></em></em>
<em><em><em>_*```*_</em></em></em>
 <em><em><em>_*ENDCG*_</em></em></em>
 
<em><em><em>_*```*_</em></em></em>
 
 <em><em><em>_*<p>}   } }</p>*_</em></em></em>
 <em><em><em>_*</blockquote>*_</em></em></em>
<em><em><em>_*<p>I deleted the line of code that creates a new material and all the materials that were created after the problem, plus all the shaders I imported or created. After that I restarted my project, but the problem is still there.</p>*_</em></em></em>
<em><em><em>_*<p>Does anyone know or have an idea about what's going on? And more importantly, how I can fix this? Any help would be greatly appreciated. Thanks in advance!</p>*_</em></em></em>

Click on the little circular rendering of the material, just to the left of the shader selection drop-down, and it will toggle the display of the material properties.