Hi! Here what happens…
I create plane. Assign it material, which has PNG texture and Transparent/Diffuse shader set. All looks superb! But, if…
I create it via code:
GameObject go = GameObject.CreatePrimitive(PrimitiveType.Plane);
go.renderer.material.mainTexture = (Texture2D)Resources.Load("RigDolls" + "/"+namef, typeof(Texture2D));
go.renderer.material.shader = Shader.Find("Transparent/Diffuse");
Now, plane texture is semi-transparent! Like, alpha value is around 0.5f.
Any ideas, what is going on? In the inspector, both planes and their materials looks identically!