[경고&에러 대응] `UnityEngine.Material.Material(string)' is obsolete by pbkim

material = new Material ("Shader \"Lines/Colored Blended\" {" +
                         "SubShader { Pass { " +
                         "    Blend SrcAlpha OneMinusSrcAlpha " +
                         "    ZWrite Off Cull Off Fog { Mode Off } " +
                         "    BindChannels {" +
                         "      Bind \"vertex\", vertex Bind \"color\", color }" +
                         "} } }");

->

Shader shader = Shader.Find("Lines/Colored Blended");  
material = new Material(shader);                        


구글 468*60


Linked in

linknow profile