Version: 5.5
public Color GetColor (string propertyName);
public Color GetColor (int nameID);

Parameters

propertyName The name of the property.
nameID The name ID of the property retrieved by Shader.PropertyToID.

Description

Получает имя значения цвета.

Много шейдеров используют больше одного цвета. Используйте GetColor для получения propertyName цвета.

Common color names used by Unity's builtin shaders:
"_Color" is the main color of a material. This can also be accessed via color property.
"_SpecColor" is the specular color of a material (used in specular/glossy/vertexlit shaders).
"_EmissionColor" is the emissive color of a material (used in vertexlit shaders).
"_ReflectColor" is the reflection color of the material (used in reflective shaders).

See Also: color property, SetColor, Shader.PropertyToID.