- Home /
Fixed by self. I still have the answer!
renderer.material.mainTexture not changing texture...
Hello. In my game I have am using the renderer.material.mainTexture = texture
to change the texture of an object, but while the script keeps working, the material does not change, even though I filled in the areas specifying what textures I meant. Thank you in advance.
Answer by Lukamyte · May 15, 2014 at 06:55 PM
HA! FIXED IT!
Used renderer.mater.SetTexture("_MainTexture, texture");
instead.
Hi. i noticed some issues , the " is wrong positioned adn mater should be material :
renderer.material.SetTexture("_$$anonymous$$ainTexture", texture);
Follow this Question
Related Questions
Changing two different objects renderer colour 1 Answer
texture.width not returning actual image pixels 2 Answers
Modifying material modifies the actual .mat file! 0 Answers
How can i change detail texture? 1 Answer
Load Material Texture from File 2 Answers