Right now my object has two textures applied to it and I want to be able to change both separately through code. I know that
this.renderer.material.mainTexture = newTexture;
will change the first texture on the object but what if your object has mltiple textures applied to it that you want to change?