| Parameter | Description |
|---|---|
| prop | The material property to draw UI for. |
| label | The label to show for the property. |
Draws the UI for a shader property, using automatic layout.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. 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 UI for a shader property at a specified position.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload draws the control at position. To use automatic layout, use the overload without a Rect.
| Parameter | Description |
|---|---|
| prop | The material property to draw UI for. |
| label | The label to show for the property, including any tooltip. |
Draws the UI for a shader property with a label and tooltip, using automatic layout.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.
| Parameter | Description |
|---|---|
| prop | The material property to draw UI for. |
| label | The label to show for the property. |
| labelIndent | The number of levels to indent the label by. |
Draws the UI for a shader property with an indented label, using automatic layout.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload uses automatic layout. To set the position and size of the control, use the overload that takes a Rect.
| Parameter | Description |
|---|---|
| prop | The material property to draw UI for. |
| label | The label to show for the property, including any tooltip. |
| labelIndent | The number of levels to indent the label by. |
Draws the UI for a shader property with an indented label and tooltip, using automatic layout.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. 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, including any tooltip. |
Draws the UI for a shader property with a label and tooltip, at a specified position.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload draws the control at position. To use automatic layout, use the overload without 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. |
| labelIndent | The number of levels to indent the label by. |
Draws the UI for a shader property with an indented label, at a specified position.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload draws the control at position. To use automatic layout, use the overload without 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, including any tooltip. |
| labelIndent | The number of levels to indent the label by. |
Draws the UI for a shader property with an indented label and tooltip, at a specified position.
This method draws the appropriate UI for the type of the shader property. It applies any custom MaterialPropertyDrawer that the shader defines for the property. To draw the default UI without custom drawers, use MaterialEditor.DefaultShaderProperty. This overload draws the control at position. To use automatic layout, use the overload without a Rect.
| Parameter | Description |
|---|---|
| shader | The shader that the property belongs to. |
| propertyIndex | The index of the property. |
Handles UI for one shader property, specified by property index.
This overload is obsolete. Use MaterialEditor.ShaderProperty(MaterialProperty,string) instead.