//Get object renderer rend = GetComponent(); //deprecated do not use rend.material.maintexture = newTexture; //proper method rend.material.SetTexture("_BaseMap",newTexture);