I can't figure what is the name of this component, so I'll try to describe it somehow.
When selecting a mesh in the inspector, there are 2 textures displayed. One texture is accessible trough
How can I accesses the other texture?
Different shaders which have multiple textures will have an internal variable name for each texture. As you've shown, the common name for the main diffuse texture is "_MainTex", and some other names used in some of Unity's built in shaders are:
You can also access the "_MainTex" more conveniently by using the .mainTexture property of the Material class like this:
answered Nov 19 '10 at 12:06 PM