Version: 5.4
public Texture GetTexture (string propertyName);
public Texture GetTexture (int nameID);

Parámetros

propertyName El nombre de una propiedad.
nameID El ID del nombre de la propiedad recuperada por Shader.PropertyToID.

Descripción

Obtiene una textura nombrada.

Muchos shaders utilizan más de una textura. Utilice GetTexture para obtener la textura con el propertyName.

Common texture names used by Unity's builtin shaders:
"_MainTex" is the main diffuse texture. This can also be accessed via mainTexture property.
"_BumpMap" is the normal map.
"_Cube" is the reflection cubemap.

See Also: mainTexture property, SetTexture, Shader.PropertyToID.