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

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The 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.