On the page for Material.Material() in the C# scripting manual, “Obsolete Creating materials from shader source string is no longer supported. Use Shader assets instead.”
The two function signatures shown there, Material(Shader …) and Material(Material …), are accepting non-string parameters.
I have code that creates a Material from a Shader object, and I’m wondering if this is obsolete, or if the comment means exactly what it says, that you can’t create a Material by passing a string to the constructor.
Can someone please clarify? Thanks!