MCQs > IT & Programming > Unity3D > How do you create a material asset (MyMaterial.mat) in Unity using Specular Shader through scripting?

Unity3D MCQs

How do you create a material asset (MyMaterial.mat) in Unity using Specular Shader through scripting?

Answer

Correct Answer: static void CreateAsset() { Material material = new Material(Shader.Find("Specular")); AssetDatabase.CreateAsset(material, "Assets/MyMaterial.mat"); }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Unity3D Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Unity3D Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it