| Parameter | Description |
|---|---|
| position | The position and size of the control. |
| prop | The material property to edit. |
| label | The label to show for the property. |
Color The value of the property, which might have changed if the user interacted with the control.
Draws a field for a color shader property at a specified position.
Use this method in a custom material editor to draw a field for a color shader property. This overload draws the control at position. To use automatic layout, use the overload without a Rect.
| Parameter | Description |
|---|---|
| prop | The material property to edit. |
| label | The label to show for the property. |
Color The value of the property, which might have changed if the user interacted with the control.
Draws a field for a color shader property, using automatic layout.
Use this method in a custom material editor to draw a field for a color shader property. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.
| Parameter | Description |
|---|---|
| propertyName | The name of the shader property. |
| label | Label for the property. |
Color The value of the property, which might have been changed by the user interacting with the control.
Draw a property field for a color shader property, specified by name.
This overload is obsolete. Use MaterialEditor.ColorProperty(MaterialProperty,string) instead.