| Parameter | Description |
|---|---|
| prop | The material property to edit. |
| label | The label to show for the property. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property, using automatic layout.
Use this method in a custom material editor to draw a field for a texture shader property. This overload shows the tiling and offset fields unless the shader property has the [NoScaleOffset] attribute. 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 edit. |
| label | The label to show for the property. |
| scaleOffset | Set to true to show the tiling and offset fields. Set to false to hide them. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property, with or without tiling and offset fields, using automatic layout.
Use this method in a custom material editor to draw a field for a texture 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 |
|---|---|
| position | The position and size of the control. |
| prop | The material property to edit. |
| label | The label to show for the property. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property at a specified position.
Use this method in a custom material editor to draw a field for a texture shader property. This overload shows the tiling and offset fields unless the shader property has the [NoScaleOffset] attribute. 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 edit. |
| label | The label to show for the property, including any tooltip. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property with a label and tooltip, at a specified position.
Use this method in a custom material editor to draw a field for a texture shader property. This overload shows the tiling and offset fields unless the shader property has the [NoScaleOffset] attribute. 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 edit. |
| label | The label to show for the property. |
| scaleOffset | Set to true to show the tiling and offset fields. Set to false to hide them. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property at a specified position, with or without tiling and offset fields.
Use this method in a custom material editor to draw a field for a texture shader property. 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 edit. |
| label | The label to show for the property, including any tooltip. |
| scaleOffset | Set to true to show the tiling and offset fields. Set to false to hide them. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property with a label and tooltip, at a specified position, with or without tiling and offset fields.
Use this method in a custom material editor to draw a field for a texture shader property. 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 edit. |
| label | The label to show for the property. |
| tooltip | The tooltip to show for the property. |
| scaleOffset | Set to true to show the tiling and offset fields. Set to false to hide them. |
Texture The texture assigned to the property, which might have changed if the user interacted with the control.
Draws a field for a texture shader property with a separate label and tooltip, at a specified position.
Use this method in a custom material editor to draw a field for a texture shader property. This overload draws the control at position. To use automatic layout, use the overload without a Rect.
| Parameter | Description |
|---|---|
| propertyName | The name of the shader property. |
| label | Label for the field. |
| texDim | This parameter isn't used. |
Texture The texture assigned to the property, which might have been changed by the user interacting with the control.
Draw a property field for a texture shader property, specified by name.
This overload is obsolete. Use MaterialEditor.TextureProperty(MaterialProperty,string) instead.
| Parameter | Description |
|---|---|
| propertyName | The name of the shader property. |
| label | Label for the field. |
| texDim | This parameter isn't used. |
| scaleOffset | Draw scale / offset. |
Texture The texture assigned to the property, which might have been changed by the user interacting with the control.
Draw a property field for a texture shader property, specified by name.
This overload is obsolete. Use MaterialEditor.TextureProperty(MaterialProperty,string,bool) instead.