# MaterialProperty

> Describes information and value of a single shader property.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public sealed class MaterialProperty
```

## Remarks

MaterialProperty is used with the [MaterialEditor](/engine/6000.7/script-reference/unityeditor/materialeditor.md) when writing custom material editors, or implementing custom [MaterialPropertyDrawer](/engine/6000.7/script-reference/unityeditor/materialpropertydrawer.md) classes.

Additional Resources: [MaterialEditor](/engine/6000.7/script-reference/unityeditor/materialeditor.md), [MaterialPropertyDrawer](/engine/6000.7/script-reference/unityeditor/materialpropertydrawer.md).

## Properties

| Property                                                                                             | Description                                                        |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [colorValue](/engine/6000.7/script-reference/unityeditor/materialproperty/colorvalue.md)             | Color value of the property.                                       |
| [displayName](/engine/6000.7/script-reference/unityeditor/materialproperty/displayname.md)           | Display name of the property (Read Only).                          |
| [floatValue](/engine/6000.7/script-reference/unityeditor/materialproperty/floatvalue.md)             | Float value of the property.                                       |
| [hasMixedValue](/engine/6000.7/script-reference/unityeditor/materialproperty/hasmixedvalue.md)       | Does this property have multiple different values? (Read Only)     |
| [intValue](/engine/6000.7/script-reference/unityeditor/materialproperty/intvalue.md)                 | Int value of the property.                                         |
| [name](/engine/6000.7/script-reference/unityeditor/materialproperty/name.md)                         | Name of the property (Read Only).                                  |
| [propertyFlags](/engine/6000.7/script-reference/unityeditor/materialproperty/propertyflags.md)       | Flags that control how the Inspector window displays the property. |
| [propertyType](/engine/6000.7/script-reference/unityeditor/materialproperty/propertytype.md)         | The type of the property.                                          |
| [rangeLimits](/engine/6000.7/script-reference/unityeditor/materialproperty/rangelimits.md)           | Min/max limits of a ranged float property (Read Only).             |
| [targets](/engine/6000.7/script-reference/unityeditor/materialproperty/targets.md)                   | Material objects being edited by this property (Read Only).        |
| [textureDimension](/engine/6000.7/script-reference/unityeditor/materialproperty/texturedimension.md) | Texture dimension (2D, Cubemap etc.) of the property (Read Only).  |
| [textureValue](/engine/6000.7/script-reference/unityeditor/materialproperty/texturevalue.md)         | Texture value of the property.                                     |
| [vectorValue](/engine/6000.7/script-reference/unityeditor/materialproperty/vectorvalue.md)           | Vector value of the property.                                      |
