nameID | 通过 Shader.PropertyToID 检索的属性的名称 ID。 |
name | 属性的名称。 |
获取指定的颜色值。
许多着色器使用多种颜色。使用 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).
另请参阅:color 属性、SetColor、Shader.PropertyToID。