Version: 2018.2
public Color GetColor (string name);
public Color GetColor (int nameID);

Parameters

nameIDThe name ID of the property retrieved by Shader.PropertyToID.
nameThe name of the property.

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.