ColorProperty
Draw a property field for a color shader property.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
ColorProperty(MaterialProperty, string)
Draw a property field for a color shader property.
public Color ColorProperty(MaterialProperty prop, string label)
Parameters
Returns
Type | Description |
|---|---|
| Color |
ColorProperty(Rect, MaterialProperty, string)
Draw a property field for a color shader property.
public Color ColorProperty(Rect position, MaterialProperty prop, string label)
Parameters
Returns
Type | Description |
|---|---|
| Color |
ColorProperty(string, string)
Draw a property field for a color shader property.
public Color ColorProperty(string propertyName, string label)
Parameters
Returns
Type | Description |
|---|---|
| Color |