| Parameter | Description |
|---|---|
| prop | The material property to draw UI for. |
| label | The label to show for the property. |
Draws the default UI for a shader property, ignoring any custom drawers, using automatic layout.
This method is similar to MaterialEditor.ShaderProperty, except it ignores any custom MaterialPropertyDrawer that the shader defines for the property. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.
| Parameter | Description |
|---|---|
| position | The position and size of the control. |
| prop | The material property to draw UI for. |
| label | The label to show for the property. |
Draws the default UI for a shader property, ignoring any custom drawers, at a specified position.
This method is similar to MaterialEditor.ShaderProperty, except it ignores any custom MaterialPropertyDrawer that the shader defines for the property. This overload draws the control at position. To use automatic layout, use the overload without a Rect.