Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #unity #main #texture #working
ADD COMMENT
Topic
Name
6+4 =