Method CreateMaterial
CreateMaterial(string)
Creates a material from a shader resolved through Find(string).
public static Material CreateMaterial(string shaderName)
Parameters
shaderNamestringName of the shader to look up.
Returns
- Material
A new material if the shader is found; otherwise null.