static Material Create (string materialName, string shader, bool anonymous)

Parameters

NameTypeDescription
materialName string Name of the new material.
shader string Shader that the new material will use.
anonymous = True bool If false, material can be found by name.

Returns

TypeDescription
Material The new material.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.