Answers for "unity main texture not working"

C#
1

unity main texture not working

//Get object renderer
rend = GetComponent<MeshRenderer>();

//deprecated do not use
rend.material.maintexture = newTexture;

//proper method
rend.material.SetTexture("_BaseMap",newTexture);
Posted by: Guest on June-13-2020

Code answers related to "unity main texture not working"

C# Answers by Framework

Browse Popular Code Answers by Language